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
@ -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…
Reference in New Issue
Block a user