summaryrefslogtreecommitdiff
path: root/t/t1401-symbolic-ref.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-03-13 00:42:25 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-03-12 23:21:16 -0700
commit8ddf3ca74f40bebd79cedba5ba82ca9f2eb33860 (patch)
tree892d6a13773d6edd93a7c65691cd17c9f791947f /t/t1401-symbolic-ref.sh
parentupload-pack: fix transfer.hiderefs over smart-http (diff)
downloadtgif-8ddf3ca74f40bebd79cedba5ba82ca9f2eb33860.tar.xz
upload-pack: do not check NULL return of lookup_unknown_object
We check whether the return value of lookup_unknown_object is NULL, but some code paths dereference it before our check. This turns out not to be capable of causing a segfault, though. The lookup_unknown_object function will never return NULL, since the whole point is to allocate an object struct if it does not find an existing one. So the code here is not wrong, it is just confusing. Let's just drop the NULL check. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1401-symbolic-ref.sh')
0 files changed, 0 insertions, 0 deletions