summaryrefslogtreecommitdiff
path: root/t/t9150
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-05-06 19:13:56 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-05-08 11:12:42 +0900
commit57e0ef0e0e90c4cb72c35db874fc3d035b88ce4d (patch)
tree5d18c963265442be4c33623c6cafdd9b9013fd56 /t/t9150
parentcheckout: check return value of resolve_refdup before using hash (diff)
downloadtgif-57e0ef0e0e90c4cb72c35db874fc3d035b88ce4d.tar.xz
am: check return value of resolve_refdup before using hash
If resolve_refdup() fails it returns NULL and possibly leaves its hash output parameter untouched. Make sure to use it only if the function succeeded, in order to avoid accessing uninitialized memory. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9150')
0 files changed, 0 insertions, 0 deletions