Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77d7e81c authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

logcat: build regression

printflike checks for NULL fmt at compile time, checks for
NULL at runtime are optimized out. Regression as a result
of commit 5976303a.

Change-Id: Ia4e7ee4b6cb2adf1e6609c70e79684855f76e6fc
parent b9a41bdb
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -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);
    }

    if (showHelp) {
       show_help(getprogname());