summaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses
diff options
context:
space:
mode:
authorDan Lynch2006-06-21 12:38:03 +0200
committerDan Lynch2006-06-21 12:38:03 +0200
commit811df504a59423726d78addb6c3f07f25806a552 (patch)
treedd46aeb72f0ab28a31bb346a6812cb7a58cc4fa2 /src/hci/mucurses
parent- added doxygen @file header (diff)
downloadipxe-811df504a59423726d78addb6c3f07f25806a552.tar.gz
ipxe-811df504a59423726d78addb6c3f07f25806a552.tar.xz
ipxe-811df504a59423726d78addb6c3f07f25806a552.zip
- erradicate compiler warning due to possibility of uninitialised variables (switch statement)
Diffstat (limited to 'src/hci/mucurses')
-rw-r--r--src/hci/mucurses/slk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hci/mucurses/slk.c b/src/hci/mucurses/slk.c
index 41ef9abb..d20fd70d 100644
--- a/src/hci/mucurses/slk.c
+++ b/src/hci/mucurses/slk.c
@@ -203,6 +203,9 @@ int slk_init ( int fmt ) {
slks->spaces = calloc(2, sizeof(unsigned short));
slks->spaces[0] = 3; slks->spaces[1] = 7;
break;
+ default:
+ nblocks = 0; nmaj = 0; nmin = 0;
+ break;
}
// determine maximum label length and major space size