Merge branch 'br/gccfix'
authorJunio C Hamano <gitster@pobox.com>
Fri, 2 Nov 2007 23:14:00 +0000 (16:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Nov 2007 23:14:00 +0000 (16:14 -0700)
* br/gccfix:
  transport.c: squelch a gcc 4.0.1 complaint about an uninitialized variable

transport.c

index 5132d28..d44fe7c 100644 (file)
@@ -107,7 +107,7 @@ static void insert_packed_refs(const char *packed_refs, struct ref **list)
                return;
 
        for (;;) {
-               int cmp, len;
+               int cmp = cmp, len;
 
                if (!fgets(buffer, sizeof(buffer), f)) {
                        fclose(f);