Merge branch 'js/no-html-bypass-on-windows' into rt/help-unknown
[gitweb.git] / t / helper / test-submodule-config.c
index dab8c27768160d4cfa61c41a95004eb7a8a336b6..a4e4098a0fc55f804524e4333a4e1685e38ad2a8 100644 (file)
@@ -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"))