diff options
Diffstat (limited to 'time')
-rw-r--r-- | time/tzset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/time/tzset.c b/time/tzset.c index 8bc7a2e05b..82324ca980 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -644,6 +644,8 @@ __tz_convert (const time_t *timer, int use_localtime, struct tm *tp) leap_extra_secs = 0; } + __libc_lock_unlock (tzset_lock); + if (tp) { if (! use_localtime) @@ -659,8 +661,6 @@ __tz_convert (const time_t *timer, int use_localtime, struct tm *tp) tp = NULL; } - __libc_lock_unlock (tzset_lock); - return tp; } |