Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: introduce close_one_pack() to close packs on fd pressure
[gitweb.git]
/
transport.c
diff --git
a/transport.c
b/transport.c
index 886ffd8b1e1c9dbb31f3156844790ff98d5ecde3..e6f9346c762416b9c0e97f9023062f99e4542dbc 100644
(file)
--- 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 = cmp, len;
+ int cmp = 0; /* assigned before used */
+ int len;
if (!fgets(buffer, sizeof(buffer), f)) {
fclose(f);