Skip to content
Snippets Groups Projects
Commit a044a183 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avutil/log: skip IO calls on empty strings


These occur when no context is set for example, thus they are common

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent d6838309
No related branches found
No related tags found
No related merge requests found
...@@ -103,6 +103,9 @@ static int use_color = -1; ...@@ -103,6 +103,9 @@ static int use_color = -1;
static void colored_fputs(int level, const char *str) static void colored_fputs(int level, const char *str)
{ {
if (!*str)
return;
if (use_color < 0) { if (use_color < 0) {
#if HAVE_SETCONSOLETEXTATTRIBUTE #if HAVE_SETCONSOLETEXTATTRIBUTE
CONSOLE_SCREEN_BUFFER_INFO con_info; CONSOLE_SCREEN_BUFFER_INFO con_info;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment