Merge branch 'empty-argv' into 'main'

Various minor fixes for empty argv handling

See merge request GNOME/glib!2466
This commit is contained in:
Philip Withnall
2022-02-20 09:36:41 +00:00
14 changed files with 120 additions and 25 deletions

View File

@@ -196,7 +196,7 @@ main (gint argc,
}
if (!gen_froots && !gen_tree)
return help (argv[i-1]);
return help ((argc > 0) ? argv[i-1] : NULL);
if (!indent_inc)
{