X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Flog.c;h=419c5e9fcca30ef741f625b8ee7bf769894ea25f;hb=1ddc0f01053b355c5805df3659866e11d50d60d0;hp=5a5dc808c9487ba8d479a896187678701387445f;hpb=8458dd2f239313e763dda98c8ded6e46f3f63ea4;p=libucw.git diff --git a/ucw/log.c b/ucw/log.c index 5a5dc808..419c5e9f 100644 --- a/ucw/log.c +++ b/ucw/log.c @@ -118,6 +118,7 @@ vmsg(uns cat, const char *fmt, va_list args) { /* CAVEAT: These calls are not safe in signal handlers. */ gettimeofday(&tv, NULL); + m.tv = &tv; if (localtime_r(&tv.tv_sec, &tm)) m.tm = &tm; }