Page MenuHomeFreeBSD

D52680.id162579.diff
No OneTemporary

D52680.id162579.diff

diff --git a/contrib/tzcode/localtime.c b/contrib/tzcode/localtime.c
--- a/contrib/tzcode/localtime.c
+++ b/contrib/tzcode/localtime.c
@@ -1649,9 +1649,11 @@
lclptr = sp = malloc(sizeof *lclptr);
# endif
if (sp) {
- if (zoneinit(sp, name, TZLOAD_FROMENV | TZLOAD_TZSTRING) != 0) {
+ int err = zoneinit(sp, name, TZLOAD_FROMENV | TZLOAD_TZSTRING);
+ if (err != 0) {
zoneinit(sp, "", 0);
- strcpy(sp->chars, UNSPEC);
+ if (name != NULL || err != ENOENT)
+ strcpy(sp->chars, UNSPEC);
}
if (0 < lcl)
strcpy(lcl_TZname, name);

File Metadata

Mime Type
text/plain
Expires
Fri, May 22, 8:49 PM (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33430498
Default Alt Text
D52680.id162579.diff (575 B)

Event Timeline