summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2007-11-02 16:14:00 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-11-02 16:14:00 -0700
commit7240bfeaf7eccc6d2c4b2df07b7f33caa547953c (patch)
tree77dafa7db208a8c8d8c835a62af44e4bf0ae9c91
parentMerge branch 'gp/maint-diffdoc' (diff)
parenttransport.c: squelch a gcc 4.0.1 complaint about an uninitialized variable (diff)
downloadtgif-7240bfeaf7eccc6d2c4b2df07b7f33caa547953c.tar.xz
Merge branch 'br/gccfix'
* br/gccfix: transport.c: squelch a gcc 4.0.1 complaint about an uninitialized variable
-rw-r--r--transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index 5132d289da..d44fe7cee7 100644
--- a/transport.c
+++ b/transport.c
@@ -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);