From 67ef9905e65c586c0a08162e119593a7c16df922 Mon Sep 17 00:00:00 2001 From: eck Date: Tue, 2 Oct 1990 09:59:30 +0000 Subject: [PATCH] made implementation defined behaviour (POSIX) more explicit --- lang/cem/libcc.ansi/time/misc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lang/cem/libcc.ansi/time/misc.c b/lang/cem/libcc.ansi/time/misc.c index 133beb8e3..6f7ab192c 100644 --- a/lang/cem/libcc.ansi/time/misc.c +++ b/lang/cem/libcc.ansi/time/misc.c @@ -233,6 +233,15 @@ parseTZ(const char *p) if (!p) return; + if (*p == ':') { + /* + * According to POSIX, this is implementation defined. + * Since it depends on the particular operating system, we + * can do nothing. + */ + return; + } + if (!strcmp(lastTZ, p)) return; /* nothing changed */ *_tzname[0] = '\0'; -- 2.34.1