david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[mucurses] Avoid potential division by zero

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-07-04 12:51:53 +01:00
parent 8e48d0df6b
commit c20da4fc5c
1 changed files with 1 additions and 2 deletions

View File

@ -269,8 +269,7 @@ int slk_init ( int fmt ) {
slks->spaces[0] = 3; slks->spaces[1] = 7;
break;
default:
nblocks = 0; nmaj = 0; nmin = 0;
break;
return ERR;
}
// determine maximum label length and major space size