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:
parent
2af9b574f6
commit
316797a7f6
@ -97,6 +97,10 @@ void vwarnx(FAR const char *fmt, va_list ap)
|
|||||||
#else
|
#else
|
||||||
dprintf(STDERR_FILENO, "%d: %pV\n", getpid(), &vaf);
|
dprintf(STDERR_FILENO, "%d: %pV\n", getpid(), &vaf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef va_copy
|
||||||
|
va_end(copy);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user