cron: Fix possible division by zero error
This commit is contained in:
parent
26c778df63
commit
2051682c03
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ cron_parse_field
|
|||
if ((sn - off) >= bits || (en - off) >= bits || mn > bits)
|
||||
return 1;
|
||||
if (en < 0) en = sn;
|
||||
if (mn < 0) mn = 1;
|
||||
if (mn <= 0) mn = 1;
|
||||
while (sn <= en) {
|
||||
if ( (sn % mn) == 0 )
|
||||
val |= (0x1ULL << (sn - off));
|
||||
|
|
Loading…
Add table
Reference in a new issue