From: Igor Kulaychuk Date: Thu, 13 Dec 2018 12:07:10 +0000 (+0300) Subject: Fix gmtime thread-safety issue - use gmtime_r X-Git-Tag: accepted/tizen/5.5/unified/20191031.004607~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff87d987bacd88707dbf93079693375f218c526e;p=sdk%2Ftools%2Fprofctl.git Fix gmtime thread-safety issue - use gmtime_r --- diff --git a/logging.c b/logging.c index 642deaa..1464253 100644 --- a/logging.c +++ b/logging.c @@ -82,7 +82,7 @@ int get_current_time(time_t *et, struct tm *tm, int *millisec) *et = t; } if (tm != NULL) { - *tm = *gmtime(&t); + gmtime_r(&t, tm); } *millisec = msec; return result;