diff --git a/rdcron.c b/rdcron.c index 7e39763..3176457 100644 --- a/rdcron.c +++ b/rdcron.c @@ -115,7 +115,7 @@ static char *readnum(char *line, int *out, int minval, int maxval, line[i] = '\0'; for (ev = mnemonic; ev->name != NULL; ++ev) { - if (!strcmp(line, mnemonic->name) == 0) + if (strcmp(line, ev->name) == 0) break; }