mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +00:00
u/logging: Fix va_copy usage
This commit is contained in:
parent
15a5c64a15
commit
e2e65aa241
|
@ -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); \
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue