Don't allow DURATION without an AT.

This commit is contained in:
Dianne Skoll
2019-12-31 21:51:34 -05:00
parent 9b421d0b94
commit 08af33ece5
8 changed files with 29 additions and 9 deletions
+5
View File
@@ -513,6 +513,11 @@ int ComputeTriggerNoAdjustDuration(int today, Trigger *trig, TimeTrig *tim,
return -1;
}
if (tim->duration != NO_TIME && tim->ttime == NO_TIME) {
*err = E_DURATION_NO_AT;
return -1;
}
if (trig->rep != NO_REP &&
(trig->d == NO_DAY ||
trig->m == NO_MON ||