summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorBlake Ramsdell <blaker@gmail.com>2007-11-01 19:38:22 -0700
committerJunio C Hamano <gitster@pobox.com>2007-11-02 02:05:18 -0700
commit47ec79430dc6a60336bebdc0a45fb9f15129d0c7 (patch)
tree7bd55e1fab64de496d4fb7aa31e4c6b3aac2255b /transport.c
parent3e4bb087a18435b12eb82116e93af2887578e816 (diff)
downloadgit-47ec79430dc6a60336bebdc0a45fb9f15129d0c7.tar.gz
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>
Diffstat (limited to 'transport.c')
-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);