Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157474275
D52680.id162579.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
575 B
Referenced Files
None
Subscribers
None
D52680.id162579.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D52680: tzcode: Use -00 only for invalid time zones
Attached
Detach File
Event Timeline
Log In to Comment