summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/timemodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 8118b31..1a4cff2 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -1764,7 +1764,8 @@ PyInit_time(void)
#if defined(__linux__) && !defined(__GLIBC__)
struct tm tm;
- if (gmtime_r(0, &tm) != NULL)
+ const time_t zero = 0;
+ if (gmtime_r(&zero, &tm) != NULL)
utc_string = tm.tm_zone;
#endif