From e4132fd0e085bf1437ff4e7c698f0089b17c400a Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sun, 12 Apr 2009 21:35:45 +0100 Subject: [PATCH] Missing initializers, unaccountably not spotted by lenny's GCC! Organization: Straylight/Edgeware From: Richard Kettlewell --- lib/configuration.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]))) -- [mdw]