Commit 557b17f1 authored by Benjamin REIS's avatar Benjamin REIS

Fix C90 build

parent 5f78ebaf
......@@ -374,9 +374,9 @@ void bctbx_logv(const char *domain, BctbxLogLevel level, const char *fmt, va_lis
if (__bctbx_logger.log_thread_id == 0) {
bctbx_list_t *loggers = bctbx_list_first_elem(__bctbx_logger.logv_outs);
while (loggers) {
BctoolboxLogHandler* handler = (BctoolboxLogHandler*)loggers->data;
va_list tmp;
va_copy(tmp, args);
BctoolboxLogHandler* handler = (BctoolboxLogHandler*)loggers->data;
handler->func(handler->user_info, domain, level, fmt, tmp);
va_end(tmp);
loggers = loggers->next;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment