From 811df504a59423726d78addb6c3f07f25806a552 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Wed, 21 Jun 2006 10:38:03 +0000 Subject: [PATCH] - erradicate compiler warning due to possibility of uninitialised variables (switch statement) --- src/hci/mucurses/slk.c | 3 +++ 1 file changed, 3 insertions(+) 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