diff options
author | René Scharfe <l.s.r@web.de> | 2017-05-06 19:13:56 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-08 11:12:42 +0900 |
commit | 57e0ef0e0e90c4cb72c35db874fc3d035b88ce4d (patch) | |
tree | 5d18c963265442be4c33623c6cafdd9b9013fd56 /builtin/update-server-info.c | |
parent | checkout: check return value of resolve_refdup before using hash (diff) | |
download | tgif-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 'builtin/update-server-info.c')
0 files changed, 0 insertions, 0 deletions