Browse Source

- erradicate compiler warning due to possibility of uninitialised variables (switch statement)

tags/v0.9.3
Dan Lynch 18 years ago
parent
commit
811df504a5
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/hci/mucurses/slk.c

+ 3
- 0
src/hci/mucurses/slk.c View File

@@ -203,6 +203,9 @@ int slk_init ( int fmt ) {
203 203
 		slks->spaces = calloc(2, sizeof(unsigned short));
204 204
 		slks->spaces[0] = 3; slks->spaces[1] = 7;
205 205
 		break;
206
+	default:
207
+		nblocks = 0; nmaj = 0; nmin = 0;
208
+		break;
206 209
 	}
207 210
 
208 211
 	// determine maximum label length and major space size

Loading…
Cancel
Save