summaryrefslogtreecommitdiff
path: root/t/t3505-cherry-pick-empty.sh
diff options
context:
space:
mode:
authorNeil Horman <nhorman@tuxdriver.com>2012-05-03 12:10:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-05-03 22:41:35 (GMT)
commit4b580061b350ae9d27ab7c3936a45828a33624c6 (patch)
tree2a1bf8aca353514402c77d72f61047562a90e34c /t/t3505-cherry-pick-empty.sh
parent90e1818f9a06015159712e204dd90868e0a6c421 (diff)
downloadgit-4b580061b350ae9d27ab7c3936a45828a33624c6.zip
git-4b580061b350ae9d27ab7c3936a45828a33624c6.tar.gz
git-4b580061b350ae9d27ab7c3936a45828a33624c6.tar.bz2
git cherry-pick: do not dereference a potential NULL pointer
In the case the pointer could be NULL, the function that gave the caller the NULL pointer would already have issued an error message, so simply returning early with an error status without issuing a new message is sufficient. The same for parse_commit() that will show necessary error message when the argument is not NULL, and will return error silently when the argument is NULL. Noticed-by: Michael Mueller Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3505-cherry-pick-empty.sh')
0 files changed, 0 insertions, 0 deletions