Skip to content

Commit

Permalink
transport.c: squelch a gcc 4.0.1 complaint about an uninitialized var…
Browse files Browse the repository at this point in the history
…iable

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>
  • Loading branch information
Blake Ramsdell authored and Junio C Hamano committed Nov 2, 2007
1 parent 3e4bb08 commit 47ec794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 47ec794

Please sign in to comment.