summaryrefslogtreecommitdiff
path: root/tests/diff
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2018-07-06 22:24:16 +0200
committerEtienne Samson <samson.etienne@gmail.com>2018-07-06 22:24:16 +0200
commit6ae6491e5f6033a23dfdb0fb010da74ef5413c0f (patch)
tree2c7e5aa88b6c8807bffb85a34a2fbc90c559b338 /tests/diff
parent68c7480a8ef77424c67bcf5f0b822926e030d758 (diff)
downloadlibgit2-6ae6491e5f6033a23dfdb0fb010da74ef5413c0f.tar.gz
smart: don't dereference a NULL pkt pointer
By clarifying what detect_caps returns on empty/missing packet, we can be sure there are actually refs to process. The old code could blindly dereference `first`, which might have been NULL. Reported by Coverity, CID 1393614
Diffstat (limited to 'tests/diff')
0 files changed, 0 insertions, 0 deletions