diff options
Diffstat (limited to 'test-submodule-config.c')
-rw-r--r-- | test-submodule-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-submodule-config.c b/test-submodule-config.c index dab8c27768..a4e4098a0f 100644 --- a/test-submodule-config.c +++ b/test-submodule-config.c @@ -23,7 +23,7 @@ int main(int argc, char **argv) arg++; my_argc--; - while (starts_with(arg[0], "--")) { + while (arg[0] && starts_with(arg[0], "--")) { if (!strcmp(arg[0], "--url")) output_url = 1; if (!strcmp(arg[0], "--name")) |