diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mongoclock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongoclock.c b/src/mongoclock.c index 3170c95..96244b6 100644 --- a/src/mongoclock.c +++ b/src/mongoclock.c @@ -298,12 +298,11 @@ int main(int argc, char* argv[]) return 0; fail: - perror(*argv); + perror(argc ? *argv : "mongoclock"); fprintf(stdout, "\033[?25h\n\033[?1049l"); fflush(stdout); if (fd >= 0) close(fd); return 1; - (void) argc; } |