diff options
| author | Junio C Hamano <gitster@pobox.com> | 2016-08-08 14:21:46 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2016-08-08 14:21:46 -0700 |
| commit | f7b01d3eb76b5c1d04b774454364e87b49e80b56 (patch) | |
| tree | 01202bfe9490f404e011ad3ade90ea0f0c1404cf /t/helper/test-submodule-config.c | |
| parent | 6a024a249fe4bc7ac9de4d8ffd5dfed0cf986fd7 (diff) | |
| parent | 55cbe18e1146320674968820150126ee34e5d332 (diff) | |
| download | git-f7b01d3eb76b5c1d04b774454364e87b49e80b56.tar.gz | |
Merge branch 'rs/submodule-config-code-cleanup' into maint
Code cleanup.
* rs/submodule-config-code-cleanup:
submodule-config: fix test binary crashing when no arguments given
submodule-config: combine early return code into one goto
submodule-config: passing name reference for .gitmodule blobs
submodule-config: use explicit empty string instead of strbuf in config_from()
Diffstat (limited to 't/helper/test-submodule-config.c')
| -rw-r--r-- | t/helper/test-submodule-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-submodule-config.c b/t/helper/test-submodule-config.c index dab8c27768..a4e4098a0f 100644 --- a/t/helper/test-submodule-config.c +++ b/t/helper/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")) |
