Pārlūkot izejas kodu

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

tags/v0.9.3
Dan Lynch 18 gadus atpakaļ
vecāks
revīzija
811df504a5
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3
    0
      src/hci/mucurses/slk.c

+ 3
- 0
src/hci/mucurses/slk.c Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt