summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-25 13:52:25 -0700
committerJunio C Hamano <gitster@pobox.com>2013-03-25 13:52:25 -0700
commitcd04c522bdcecdbea3a3f53d71381bd8f679c580 (patch)
tree7445acf91a8fcfafce8b8aa74e7f07a7d924443f /transport.c
parent7b592fadf1e23b10b913e0771b9f711770597266 (diff)
parent1252f8b29faf3a1a45a995ae72d1d8c8ee67ad36 (diff)
downloadgit-cd04c522bdcecdbea3a3f53d71381bd8f679c580.tar.gz
Merge branch 'maint'
* maint: Start preparing for 1.8.2.1 transport.c: help gcc 4.6.3 users by squelching compiler warning
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index 6f671c6506..42a61b30b3 100644
--- a/transport.c
+++ b/transport.c
@@ -106,7 +106,8 @@ static void insert_packed_refs(const char *packed_refs, struct ref **list)
return;
for (;;) {
- int cmp, len;
+ int cmp = 0; /* assigned before used */
+ int len;
if (!fgets(buffer, sizeof(buffer), f)) {
fclose(f);