summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 051e400)
raw | patch | inline | side by side (parent: 051e400)
author | Brian Harring <ferringb@gmail.com> | |
Wed, 24 Aug 2011 05:47:17 +0000 (22:47 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 24 Aug 2011 17:50:33 +0000 (10:50 -0700) |
This fixes a segfault introduced by 051e400; via it, no longer able to
trigger the http/smartserv race.
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trigger the http/smartserv race.
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c | patch | blob | history |
diff --git a/upload-pack.c b/upload-pack.c
index a9a6c0cb24ba1d91212650a33d9249a5202454aa..03adf28550a30ecd441b9586fc9dfa638c939ce3 100644 (file)
--- a/upload-pack.c
+++ b/upload-pack.c
namebuf[41] = '\n';
for (i = get_max_object_index(); 0 < i; ) {
o = get_indexed_object(--i);
+ if (!o)
+ continue;
if (!(o->flags & OUR_REF))
continue;
memcpy(namebuf + 1, sha1_to_hex(o->sha1), 40);