mirror of https://github.com/ipxe/ipxe.git
[mucurses] Attempt to fix test for empty string
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/58/merge
parent
7b113bc744
commit
d29e2d551c
|
@ -83,7 +83,7 @@ static void _print_label ( struct _softlabel sl ) {
|
||||||
space_ch = ' ';
|
space_ch = ' ';
|
||||||
|
|
||||||
// protect against gaps in the soft label keys array
|
// 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) );
|
memset( str, space_ch, (size_t)(slks->max_label_len) );
|
||||||
} else {
|
} else {
|
||||||
/* we need to pad the label with varying amounts of leading
|
/* we need to pad the label with varying amounts of leading
|
||||||
|
|
Loading…
Reference in New Issue