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
 		slks->spaces = calloc(2, sizeof(unsigned short));
203
 		slks->spaces = calloc(2, sizeof(unsigned short));
204
 		slks->spaces[0] = 3; slks->spaces[1] = 7;
204
 		slks->spaces[0] = 3; slks->spaces[1] = 7;
205
 		break;
205
 		break;
206
+	default:
207
+		nblocks = 0; nmaj = 0; nmin = 0;
208
+		break;
206
 	}
209
 	}
207
 
210
 
208
 	// determine maximum label length and major space size
211
 	// determine maximum label length and major space size

Loading…
Cancel
Save