summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2016-09-10 20:51:17 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2016-09-10 20:51:17 (GMT)
commit130bbe5fd3d0bd0c494078aff19a5f8108707b89 (patch)
tree308a5ef9afaf7ce84a9598f88e34fb37948ecf4f
parent358cfd426ccc0fcd6a7940d306602138e76420ae (diff)
downloadcpython-130bbe5fd3d0bd0c494078aff19a5f8108707b89.zip
cpython-130bbe5fd3d0bd0c494078aff19a5f8108707b89.tar.gz
cpython-130bbe5fd3d0bd0c494078aff19a5f8108707b89.tar.bz2
#28067: Fixed another typo.
-rw-r--r--Modules/_datetimemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c
index 892772f..381835d 100644
--- a/Modules/_datetimemodule.c
+++ b/Modules/_datetimemodule.c
@@ -5067,7 +5067,7 @@ local_timezone_from_timestamp(time_t timestamp)
if (local_time == NULL) {
return NULL;
}
- if (gmtime(&timestamp, &utc_time_tm) == NULL) {
+ if (gmtime_r(&timestamp, &utc_time_tm) == NULL) {
#ifdef EINVAL
if (errno == 0)
errno = EINVAL;