timerec: fix crash if stop and start times are equal
This commit is contained in:
parent
dbd3a1237e
commit
75ffd0cc5a
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ dvr_timerec_check(dvr_timerec_entry_t *dte)
|
|||
/* day boundary correction */
|
||||
if (start > stop)
|
||||
stop += 24 * 60 * 60;
|
||||
assert(start < stop);
|
||||
assert(start <= stop);
|
||||
|
||||
if(dte->dte_weekdays != 0x7f) {
|
||||
localtime_r(&start, &tm_start);
|
||||
|
|
Loading…
Add table
Reference in a new issue