submodule-config: fix test binary crashing when no arguments given
commit55cbe18e1146320674968820150126ee34e5d332
authorHeiko Voigt <hvoigt@hvoigt.net>
Thu, 28 Jul 2016 12:50:05 +0000 (28 14:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jul 2016 20:05:36 +0000 (28 13:05 -0700)
tree54cfef57f4cb222a381cb64e1b6530636277c4a0
parent0918e25077cb9321011a973703cc597b078f0ab5
submodule-config: fix test binary crashing when no arguments given

Since arg[0] will be NULL without any argument here and starts_with()
does not like NULL-pointers.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
test-submodule-config.c