Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
timerec: fix crash if stop and start times are equal
  • Loading branch information
Glenn-1990 authored and perexg committed Jan 4, 2015
1 parent dbd3a12 commit 75ffd0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvr/dvr_timerec.c
Expand Up @@ -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);
Expand Down

0 comments on commit 75ffd0c

Please sign in to comment.