mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 09:04:37 +03:00
[mucurses] Avoid potential division by zero
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user