summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 524a80d..70987b6 100644
--- a/parse.c
+++ b/parse.c
@@ -3108,6 +3108,12 @@ struct cmdline *parse_cmdline(int argc, char *argv[]) {
cmdline->open_files = NULL;
cmdline->nopen_files = 0;
+ static char* default_argv[] = {"bfs", NULL};
+ if (argc < 1) {
+ argc = 1;
+ argv = default_argv;
+ }
+
cmdline->argv = malloc((argc + 1)*sizeof(*cmdline->argv));
if (!cmdline->argv) {
perror("malloc()");