summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorBlake Ramsdell <blaker@gmail.com>2007-11-02 02:38:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-02 09:05:18 (GMT)
commit47ec79430dc6a60336bebdc0a45fb9f15129d0c7 (patch)
tree7bd55e1fab64de496d4fb7aa31e4c6b3aac2255b /transport.c
parent3e4bb087a18435b12eb82116e93af2887578e816 (diff)
downloadgit-47ec79430dc6a60336bebdc0a45fb9f15129d0c7.zip
git-47ec79430dc6a60336bebdc0a45fb9f15129d0c7.tar.gz
git-47ec79430dc6a60336bebdc0a45fb9f15129d0c7.tar.bz2
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 5132d28..d44fe7c 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);