summaryrefslogtreecommitdiff
path: root/zlib.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2012-04-10 19:07:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-04-10 19:28:20 (GMT)
commita961d1f1ea2e3aaef0ff3e75920d1cd830d9b423 (patch)
treed69e3175e3698793f03328d956af708a051ddab9 /zlib.c
parentc2df7585efcced5833891938fe01c24c9fb36dd7 (diff)
downloadgit-a961d1f1ea2e3aaef0ff3e75920d1cd830d9b423.zip
git-a961d1f1ea2e3aaef0ff3e75920d1cd830d9b423.tar.gz
git-a961d1f1ea2e3aaef0ff3e75920d1cd830d9b423.tar.bz2
test-subprocess: fix segfault without arguments
Check if we even have a parameter before checking its value. Running this command without any arguments may not make a lot of sense, but reacting with a segmentation fault is unduly harsh. While we're at it, avoid casting argv by declaring it const right away. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'zlib.c')
0 files changed, 0 insertions, 0 deletions