u/logging: Fix va_copy usage

This commit is contained in:
Jakob Bornecrantz 2022-03-21 21:25:39 +00:00 committed by Jakob Bornecrantz
parent 15a5c64a15
commit e2e65aa241

View file

@ -39,7 +39,7 @@ u_log_set_sink(u_log_sink_function_t func, void *data)
#define DISPATCH_SINK(FILE, LINE, FUNC, LEVEL, FORMAT, ARGS) \
if (g_log_sink_func != NULL) { \
va_list copy; \
va_copy(ARGS, copy); \
va_copy(copy, ARGS); \
g_log_sink_func(FILE, LINE, FUNC, LEVEL, FORMAT, copy, g_log_sink_data); \
va_end(copy); \
}