mirror of
https://github.com/apache/nuttx.git
synced 2026-08-30 21:53:06 +00:00
libs/libc/lib_err.c:add va_end to vwarn
call va_copy,after need call va_end Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
35009c5d4d
commit
14c5f61e77
1 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ void vwarn(FAR const char *fmt, va_list ap)
|
|||
#else
|
||||
dprintf(STDERR_FILENO, "%d: %pV: %s\n", getpid(), &vaf, strerror(error));
|
||||
#endif
|
||||
|
||||
#ifdef va_copy
|
||||
va_end(copy);
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue