summaryrefslogtreecommitdiff
path: root/glnx-console.c
diff options
context:
space:
mode:
Diffstat (limited to 'glnx-console.c')
-rw-r--r--glnx-console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-console.c b/glnx-console.c
index c2fe29d..0a96cdc 100644
--- a/glnx-console.c
+++ b/glnx-console.c
@@ -261,7 +261,7 @@ text_percent_internal (const char *text,
const guint textlen = MIN (input_textlen, ncolumns - bar_min);
const guint barlen = MIN (MAX_PROGRESSBAR_COLUMNS, ncolumns - (textlen + 1));
- if (textlen > 0)
+ if (text && textlen > 0)
{
fwrite (text, 1, textlen, stdout);
fputc (' ', stdout);