summaryrefslogtreecommitdiffstats
path: root/src/hci
diff options
context:
space:
mode:
authorMichael Brown2017-07-04 13:51:53 +0200
committerMichael Brown2017-07-04 13:51:53 +0200
commitc20da4fc5c3c3a3fd7a08b695e1624939bd6a911 (patch)
tree0ca86f2c7c24136c0bdac542d1a5fe1b4d8dc224 /src/hci
parent[usb] Use non-zero language ID to retrieve strings (diff)
downloadipxe-c20da4fc5c3c3a3fd7a08b695e1624939bd6a911.tar.gz
ipxe-c20da4fc5c3c3a3fd7a08b695e1624939bd6a911.tar.xz
ipxe-c20da4fc5c3c3a3fd7a08b695e1624939bd6a911.zip
[mucurses] Avoid potential division by zero
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci')
-rw-r--r--src/hci/mucurses/slk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hci/mucurses/slk.c b/src/hci/mucurses/slk.c
index 169e0120..2a57b1de 100644
--- a/src/hci/mucurses/slk.c
+++ b/src/hci/mucurses/slk.c
@@ -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