- erradicate compiler warning due to possibility of uninitialised variables (switch...
authorDan Lynch <danjlynch@users.sourceforge.net>
Wed, 21 Jun 2006 10:38:03 +0000 (10:38 +0000)
committerDan Lynch <danjlynch@users.sourceforge.net>
Wed, 21 Jun 2006 10:38:03 +0000 (10:38 +0000)
src/hci/mucurses/slk.c

index 41ef9ab..d20fd70 100644 (file)
@@ -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