aboutsummaryrefslogtreecommitdiffstats
path: root/mongoclock.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--mongoclock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mongoclock.c b/mongoclock.c
index 442a380..769e9d9 100644
--- a/mongoclock.c
+++ b/mongoclock.c
@@ -205,7 +205,7 @@ main(int argc, char *argv[])
return 0;
fail:
- perror(argc ? *argv : "mongoclock");
+ perror(argv0 ? argv0 : "mongoclock");
fprintf(stdout, "\033[?25h\n\033[?1049l");
fflush(stdout);
if (fd >= 0)