timerec: fix crash if stop and start times are equal

This commit is contained in:
Glenn-1990 2014-12-26 21:03:56 +01:00 committed by Jaroslav Kysela
parent dbd3a1237e
commit 75ffd0cc5a

View file

@ -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);