aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index dffdc78..2977ceb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -52,7 +52,10 @@ main(int argc, char **argv)
}
}
- msg->base_directory = argv[optind];
+ if (optind == argc)
+ msg->base_directory = ".";
+ else
+ msg->base_directory = argv[optind];
int r = run();