made implementation defined behaviour (POSIX) more explicit
authoreck <none@none>
Tue, 2 Oct 1990 09:59:30 +0000 (09:59 +0000)
committereck <none@none>
Tue, 2 Oct 1990 09:59:30 +0000 (09:59 +0000)
lang/cem/libcc.ansi/time/misc.c

index 133beb8..6f7ab19 100644 (file)
@@ -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';