aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crontab.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/crontab.c')
-rw-r--r--miscutils/crontab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index 39d3aae41..d442272f0 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -51,7 +51,7 @@ int crontab_main(int ac, char **av)
i = 1;
if (ac > 1) {
- if (av[1][0] == '-' && av[1][1] == 0) {
+ if (LONE_DASH(av[1])) {
option = REPLACE;
++i;
} else if (av[1][0] != '-') {