mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 06:43:33 +08:00
Fix va_arg calls (always call va_end)
From the manpage: "Each invocation of va_start() must be matched by a corresponding invocation of va_end() in the same function."
This commit is contained in:
committed by
Lorenz Meier
parent
b845edba64
commit
453937a89a
@@ -80,6 +80,7 @@ void qurt_log(const char *fmt, ...)
|
||||
va_start(args, fmt);
|
||||
printf(fmt, args);
|
||||
printf("n");
|
||||
va_end(args);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user