From: Glenn-1990 Date: Fri, 26 Dec 2014 20:03:56 +0000 (+0100) Subject: timerec: fix crash if stop and start times are equal X-Git-Tag: v4.1~531 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75ffd0cc5a5989d929cfa8a56d5f5bda9819cd40;p=thirdparty%2Ftvheadend.git timerec: fix crash if stop and start times are equal --- diff --git a/src/dvr/dvr_timerec.c b/src/dvr/dvr_timerec.c index f022d35cb..f1a50f03a 100644 --- a/src/dvr/dvr_timerec.c +++ b/src/dvr/dvr_timerec.c @@ -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);