diff --git a/glnx-console.c b/glnx-console.c index cf5409c9..785f3480 100644 --- a/glnx-console.c +++ b/glnx-console.c @@ -222,7 +222,8 @@ text_percent_internal (const char *text, if (percentage == -1) { - fwrite (text, 1, input_textlen, stdout); + if (text != NULL) + fwrite (text, 1, input_textlen, stdout); /* Overwrite remaining space, if any */ if (ncolumns > input_textlen)