Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mucurses] Avoid potential division by zero
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Jul 4, 2017
1 parent 8e48d0d commit c20da4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hci/mucurses/slk.c
Expand Up @@ -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
Expand Down

0 comments on commit c20da4f

Please sign in to comment.