diff options
Diffstat (limited to 'logcat/logcat.cpp')
-rw-r--r-- | logcat/logcat.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp index 5db539f..2b19b93 100644 --- a/logcat/logcat.cpp +++ b/logcat/logcat.cpp @@ -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()); |