Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153659965
D9534.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
723 B
Referenced Files
None
Subscribers
None
D9534.diff
View Options
Index: head/contrib/tzcode/stdtime/localtime.c
===================================================================
--- head/contrib/tzcode/stdtime/localtime.c
+++ head/contrib/tzcode/stdtime/localtime.c
@@ -1453,14 +1453,13 @@
}
_RWLOCK_RDLOCK(&lcl_rwlock);
tzset_basic(1);
- localsub(timep, 0L, p_tm);
+ p_tm = localsub(timep, 0L, p_tm);
_RWLOCK_UNLOCK(&lcl_rwlock);
- return(p_tm);
} else {
tzset_basic(0);
- localsub(timep, 0L, &tm);
- return(&tm);
+ p_tm = localsub(timep, 0L, &tm);
}
+ return(p_tm);
}
/*
@@ -1472,7 +1471,7 @@
{
_RWLOCK_RDLOCK(&lcl_rwlock);
tzset_basic(1);
- localsub(timep, 0L, tmp);
+ tmp = localsub(timep, 0L, tmp);
_RWLOCK_UNLOCK(&lcl_rwlock);
return tmp;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 23, 5:38 PM (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32036264
Default Alt Text
D9534.diff (723 B)
Attached To
Mode
D9534: localtime: return NULL if time_t out of range of struct tm
Attached
Detach File
Event Timeline
Log In to Comment