transport.c: squelch a gcc 4.0.1 complaint about an uninitialized variable
[git/git.git] / 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 (;;) {
                return;
 
        for (;;) {
-               int cmp, len;
+               int cmp = cmp, len;
 
                if (!fgets(buffer, sizeof(buffer), f)) {
                        fclose(f);
 
                if (!fgets(buffer, sizeof(buffer), f)) {
                        fclose(f);