david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[mucurses] Attempt to fix test for empty string

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-21 14:37:53 +02:00
parent 7b113bc744
commit d29e2d551c
1 changed files with 1 additions and 1 deletions

View File

@ -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