From: Richard Kettlewell Date: Sun, 12 Apr 2009 20:35:45 +0000 (+0100) Subject: Missing initializers, unaccountably not spotted by lenny's GCC! X-Git-Tag: 5.0~130 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/e4132fd0e085bf1437ff4e7c698f0089b17c400a?hp=-c Missing initializers, unaccountably not spotted by lenny's GCC! --- e4132fd0e085bf1437ff4e7c698f0089b17c400a diff --git a/lib/configuration.c b/lib/configuration.c index 95b8133..dc3d009 100644 --- a/lib/configuration.c +++ b/lib/configuration.c @@ -1466,7 +1466,7 @@ char *config_get_file(const char *name) { static int stringlist_compare(const struct stringlist *a, const struct stringlist *b) { - int n, c; + int n = 0, c; while(n < a->n && n < b->n) { if((c = strcmp(a->s[n], b->s[n]))) @@ -1502,7 +1502,7 @@ static int namepart_compare(const struct namepart *a, static int namepartlist_compare(const struct namepartlist *a, const struct namepartlist *b) { - int n, c; + int n = 0, c; while(n < a->n && n < b->n) { if((c = namepart_compare(&a->s[n], &b->s[n])))