fixed uninitialised value

This commit is contained in:
Devaev Maxim 2018-09-24 08:31:08 +03:00
parent 93a082e3ef
commit 4d8881bacc

View File

@ -76,7 +76,7 @@ pthread_mutex_t log_mutex;
}
#define LOG_PERROR(_x_msg, ...) { \
char _buf[1024]; \
char _buf[1024] = ""; \
strerror_r(errno, _buf, 1024); \
LOGGING_LOCK; \
printf("-- ERROR [%.03Lf tid=%ld] -- " _x_msg ": %s\n", now_ms_ld(), syscall(SYS_gettid), ##__VA_ARGS__, _buf); \