summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-09-21 11:04:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-09-21 11:04:01 (GMT)
commit7a2afa0583f4f4679beb7e73bfa63c47efc00aeb (patch)
tree7e1d2dd2143c71c12730a969369033a2e73b1c8f /generic
parentb0753631308a34f70c1b18918a04affe4c567ee5 (diff)
downloadtcl-7a2afa0583f4f4679beb7e73bfa63c47efc00aeb.zip
tcl-7a2afa0583f4f4679beb7e73bfa63c47efc00aeb.tar.gz
tcl-7a2afa0583f4f4679beb7e73bfa63c47efc00aeb.tar.bz2
Fix [e368ba6683]: ThreadSafeLocalTime(): check if localtime_r() encountered error
Diffstat (limited to 'generic')
-rw-r--r--generic/tclClock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index 194cfb3..ecf5913 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -1714,7 +1714,7 @@ ThreadSafeLocalTime(
struct tm *tmPtr = (struct tm *)Tcl_GetThreadData(&tmKey, sizeof(struct tm));
#ifdef HAVE_LOCALTIME_R
- localtime_r(timePtr, tmPtr);
+ tmPtr = localtime_r(timePtr, tmPtr);
#else
struct tm *sysTmPtr;