Added mising va_end() in TracePrintf function

Normally the va_end function does not do anything,
but it should be called because some platforms need it.

[alkondratenko@gmail.com: reworded commit message]
Signed-off-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
This commit is contained in:
cs-lee 2017-08-06 04:51:52 -07:00 committed by Aliaksey Kandratsenka
parent 497b60ef0f
commit 47efdd60f5

View File

@ -889,6 +889,7 @@ static void TracePrintf(int fd, const char *fmt, ...) {
const char *p = fmt;
char numbuf[25];
if (fd < 0) {
va_end(ap);
return;
}
numbuf[sizeof(numbuf)-1] = 0;