mirror of https://github.com/ipxe/ipxe.git
[mucurses] Avoid potential division by zero
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/64/head
parent
8e48d0df6b
commit
c20da4fc5c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue