Browse Source

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>
maint
Blake Ramsdell 18 years ago committed by Junio C Hamano
parent
commit
47ec79430d
  1. 2
      transport.c

2
transport.c

@ -107,7 +107,7 @@ static void insert_packed_refs(const char *packed_refs, struct ref **list) @@ -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);

Loading…
Cancel
Save