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>
This commit is contained in:
Blake Ramsdell 2007-11-01 19:38:22 -07:00 committed by Junio C Hamano
parent 3e4bb087a1
commit 47ec79430d

View file

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