summary refs log tree commit diff
path: root/timezone/zic.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-10-01 10:11:51 +0000
committerUlrich Drepper <drepper@redhat.com>1998-10-01 10:11:51 +0000
commite3e4e463cf18e47448e92f6cb2c126b9828cd2ca (patch)
tree70d944171d2660674bb33950ad2d8a581212091a /timezone/zic.c
parent36ab45e15f650b5034089879cf2cdfa427f17d72 (diff)
downloadglibc-e3e4e463cf18e47448e92f6cb2c126b9828cd2ca.tar.gz
glibc-e3e4e463cf18e47448e92f6cb2c126b9828cd2ca.tar.xz
glibc-e3e4e463cf18e47448e92f6cb2c126b9828cd2ca.zip
Update.
1998-10-01  Ulrich Drepper  <drepper@cygnus.com>

	* timezone/zic.c: Update from tzcode1998h.
	* timezone/europe: Update from tzdata1998i.
	* timezone/southamerica: Likewise.
Diffstat (limited to 'timezone/zic.c')
-rw-r--r--timezone/zic.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/timezone/zic.c b/timezone/zic.c
index 2397a7841e..b6b43c7c17 100644
--- a/timezone/zic.c
+++ b/timezone/zic.c
@@ -1,6 +1,6 @@
 #ifndef lint
 #ifndef NOID
-static char	elsieid[] = "@(#)zic.c	7.94";
+static char	elsieid[] = "@(#)zic.c	7.95";
 #endif /* !defined NOID */
 #endif /* !defined lint */
 
@@ -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;
 	}