Skip to content

Commit

Permalink
util.c: mktime needs to run under a mutex
Browse files Browse the repository at this point in the history
per the Posix standard
  • Loading branch information
khwilliamson committed May 5, 2021
1 parent 287ebe8 commit 49b3bb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util.c
Expand Up @@ -4203,7 +4203,9 @@ giving localized results.
STMT_START {
struct tm mytm2;
mytm2 = mytm;
MKTIME_LOCK;
mktime(&mytm2);
MKTIME_UNLOCK;
#ifdef HAS_TM_TM_GMTOFF
mytm.tm_gmtoff = mytm2.tm_gmtoff;
#endif
Expand Down

0 comments on commit 49b3bb5

Please sign in to comment.