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;
|
slks->spaces[0] = 3; slks->spaces[1] = 7;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
nblocks = 0; nmaj = 0; nmin = 0;
|
return ERR;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// determine maximum label length and major space size
|
// determine maximum label length and major space size
|
||||||
|
|
Loading…
Reference in New Issue