Skip to content

Commit

Permalink
Fix regression in handling */x crontab entries
Browse files Browse the repository at this point in the history
Fixes #102
  • Loading branch information
t8m committed Mar 22, 2022
1 parent 07bf4b9 commit 299ef06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,9 @@ get_range(bitstr_t * bits, int low, int high, const char *names[],
return (EOF);

case R_STEP:
if (get_number(&num3, 0, PPC_NULL, file) != EOF) {
unget_char(ch, file);
if (get_number(&num3, 0, PPC_NULL, file) != EOF
&& num3 != 0) {
state = R_TERMS;
break;
}
Expand Down

0 comments on commit 299ef06

Please # to comment.