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:
chao.an 2022-03-19 14:23:36 +08:00 committed by Petro Karashchenko
parent 2af9b574f6
commit 316797a7f6

View File

@ -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
}
/****************************************************************************