summaryrefslogtreecommitdiff
path: root/snooze.c
diff options
context:
space:
mode:
Diffstat (limited to 'snooze.c')
-rw-r--r--snooze.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/snooze.c b/snooze.c
index f37c42a..9a3381a 100644
--- a/snooze.c
+++ b/snooze.c
@@ -113,7 +113,8 @@ parse(char *expr, char *buf, long bufsiz, int offset)
case '/':
s++;
n0 = n;
- n = parse_int(&s, -offset, bufsiz);
+ if (*s)
+ n = parse_int(&s, -offset, bufsiz);
if (n == 0) // / = *
n = 1;
for (i = n0; i < bufsiz; i += n)