@matheusbsbs / matheus-bagliano / commits / 47ec79430d
Fork 0

transport.c: squelch a gcc 4.0.1 complaint about an uninitialized variable

The variable is always set if it is going to be used; gcc just does not notice it. Signed-off-by: Blake Ramsdell <blaker@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Blake Ramsdell committed Nov 1, 2007 at 19:38 UTC 47ec79430dc6a60336bebdc0a45fb9f15129d0c7
1 file changed +1 -1
transport.c
+1 -1
@@ -107,7 +107,7 @@ static void insert_packed_refs(const char *packed_refs, struct ref **list)
107 return;
108
109 for (;;) {
110 - int cmp, len;
110 + int cmp = cmp, len;
111
112 if (!fgets(buffer, sizeof(buffer), f)) {
113 fclose(f);