Skip to content

Commit

Permalink
[mucurses] Attempt to fix test for empty string
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 21, 2017
1 parent 7b113bc commit d29e2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hci/mucurses/slk.c
Expand Up @@ -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
Expand Down

0 comments on commit d29e2d5

Please sign in to comment.