dtcm: Coverity 174810

This commit is contained in:
Peter Howkins 2018-07-05 00:10:58 +01:00
parent 39461d7548
commit e91f12cc54
1 changed files with 2 additions and 0 deletions

View File

@ -1853,6 +1853,8 @@ reset_timer(Calendar *c) {
_csa_iso8601_to_tick(reminders[0].run_time, &reminder_tick);
c->view->next_alarm_id = XtAppAddTimeOut(c->xcontext->app,
(max(reminder_tick - now(), 1) * 1000), reminder_driver, c);
} else {
free(reminders);
}
return stat;