Merge "Va_end should be used with va_start" am: 5f4808382e
am: 34b7617cb7
Change-Id: Ibc9fed36270da3f960179086792ce1187be31e92
This commit is contained in:
commit
df36644d68
3 changed files with 4 additions and 0 deletions
|
|
@ -555,6 +555,7 @@ static void db_printf(const char* fmt, ...)
|
|||
} else {
|
||||
vprintf(fmt, argp);
|
||||
}
|
||||
va_end(argp);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -562,6 +562,7 @@ static void db_printf(const char* fmt, ...)
|
|||
} else {
|
||||
vprintf(fmt, argp);
|
||||
}
|
||||
va_end(argp);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -45,9 +45,11 @@ void Printer::printFormatLine(const char* format, ...) {
|
|||
#ifndef _WIN32
|
||||
if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error
|
||||
ALOGE("%s: Failed to format string", __FUNCTION__);
|
||||
va_end(arglist);
|
||||
return;
|
||||
}
|
||||
#else
|
||||
va_end(arglist);
|
||||
return;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue