mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
libc/err: fix unpaired va_end()
each invocation of va_start() must be matched by a corresponding invocation of va_end() in the same function Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
2af9b574f6
commit
316797a7f6
@@ -97,6 +97,10 @@ void vwarnx(FAR const char *fmt, va_list ap)
|
||||
#else
|
||||
dprintf(STDERR_FILENO, "%d: %pV\n", getpid(), &vaf);
|
||||
#endif
|
||||
|
||||
#ifdef va_copy
|
||||
va_end(copy);
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user