made implementation defined behaviour (POSIX) more explicit
This commit is contained in:
parent
6f6dff3461
commit
67ef9905e6
1 changed files with 9 additions and 0 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue