SCCS-file: zic.c

SCCS-SID: 7.95
This commit is contained in:
Arthur David Olson
2012-07-18 03:02:31 -04:00
committed by Paul Eggert
parent ef92aeaad4
commit 82eeafc1fe
+3 -2
View File
@@ -901,9 +901,10 @@ const int signable;
error(errstring);
return 0;
}
if (hh < 0 || hh >= HOURSPERDAY ||
if ((hh < 0 || hh >= HOURSPERDAY ||
mm < 0 || mm >= MINSPERHOUR ||
ss < 0 || ss > SECSPERMIN) {
ss < 0 || ss > SECSPERMIN) &&
!(hh == HOURSPERDAY && mm == 0 && ss == 0)) {
error(errstring);
return 0;
}