diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2012-04-10 21:07:34 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-10 12:28:20 -0700 |
commit | a961d1f1ea2e3aaef0ff3e75920d1cd830d9b423 (patch) | |
tree | d69e3175e3698793f03328d956af708a051ddab9 /t/t8005/utf8.txt | |
parent | submodule: fix prototype of gitmodules_config (diff) | |
download | tgif-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 't/t8005/utf8.txt')
0 files changed, 0 insertions, 0 deletions