X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/553d81156ea61e3b3fad5e7fc4d1191ff55ceabb..5bb00bddc726ec1718ac67ae6283f7d5ac81f84a:/lib/configuration.c 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])))