chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
863c04f
)
Missing initializers, unaccountably not spotted by lenny's GCC!
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 12 Apr 2009 20:35:45 +0000
(21:35 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 12 Apr 2009 20:35:45 +0000
(21:35 +0100)
lib/configuration.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/configuration.c
b/lib/configuration.c
index 95b81330df1c546a93bcdc978c28a5deade62105..dc3d0092b6c8216081b4e794a848cf6f15362826 100644
(file)
--- 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) {
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])))
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) {
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])))
while(n < a->n && n < b->n) {
if((c = namepart_compare(&a->s[n], &b->s[n])))