get_locale_time(): Fix locking of localtime()
authorFabian Keil <fk@fabiankeil.de>
Sun, 7 Jun 2020 17:23:30 +0000 (19:23 +0200)
committerFabian Keil <fk@fabiankeil.de>
Mon, 8 Jun 2020 13:34:36 +0000 (15:34 +0200)
commite38abca385ad4ac6fcb5b0daf486b72d5e19c012
treecb27c756bfd5f9dda2fb46053a3854ca49cbc695
parentbbf03939e49397937cc8b10943c19a3c8ce26b0c
get_locale_time(): Fix locking of localtime()

Previously we were only locking the actual localtime()
call while we should keep the lock until the returned
pointer is no longer being used.
cgi.c