From d29e2d551c3778066ee94c868850ec1e8ab17c81 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 21 Mar 2017 14:37:53 +0200 Subject: [PATCH] [mucurses] Attempt to fix test for empty string Signed-off-by: Michael Brown --- src/hci/mucurses/slk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci/mucurses/slk.c b/src/hci/mucurses/slk.c index 660eb65c..da35c567 100644 --- a/src/hci/mucurses/slk.c +++ b/src/hci/mucurses/slk.c @@ -83,7 +83,7 @@ static void _print_label ( struct _softlabel sl ) { space_ch = ' '; // protect against gaps in the soft label keys array - if ( sl.label == NULL ) { + if ( ! sl.label[0] ) { memset( str, space_ch, (size_t)(slks->max_label_len) ); } else { /* we need to pad the label with varying amounts of leading