Bläddra i källkod

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

tags/v0.9.3
Dan Lynch 19 år sedan
förälder
incheckning
811df504a5
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3
    0
      src/hci/mucurses/slk.c

+ 3
- 0
src/hci/mucurses/slk.c Visa fil

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

Laddar…
Avbryt
Spara