Merge "logcat: build regression"

This commit is contained in:
Mark Salyzyn 2015-04-13 16:56:38 +00:00 committed by Gerrit Code Review
commit 7746546b89
1 changed files with 4 additions and 6 deletions

View File

@ -342,12 +342,10 @@ static bool getSizeTArg(char *ptr, size_t *val, size_t min = 0,
static void logcat_panic(bool showHelp, const char *fmt, ...)
{
if (fmt) {
va_list args;
va_start(args, fmt);
vfprintf(stderr, fmt, args);
va_end(args);
}
va_list args;
va_start(args, fmt);
vfprintf(stderr, fmt, args);
va_end(args);
if (showHelp) {
show_help(getprogname());