summaryrefslogtreecommitdiffstats
path: root/src/hci
diff options
context:
space:
mode:
Diffstat (limited to 'src/hci')
-rw-r--r--src/hci/mucurses/slk.c2
1 files changed, 1 insertions, 1 deletions
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