aboutsummaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2012-04-10 21:07:34 +0200
committerJunio C Hamano <gitster@pobox.com>2012-04-10 12:28:20 -0700
commita961d1f1ea2e3aaef0ff3e75920d1cd830d9b423 (patch)
treed69e3175e3698793f03328d956af708a051ddab9 /git-gui
parentc2df7585efcced5833891938fe01c24c9fb36dd7 (diff)
downloadgit-a961d1f1ea2e3aaef0ff3e75920d1cd830d9b423.tar.gz
git-a961d1f1ea2e3aaef0ff3e75920d1cd830d9b423.tar.xz
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 'git-gui')
0 files changed, 0 insertions, 0 deletions