瀏覽代碼

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

tags/v0.9.3
Dan Lynch 18 年之前
父節點
當前提交
811df504a5
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/hci/mucurses/slk.c

+ 3
- 0
src/hci/mucurses/slk.c 查看文件

@@ -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…
取消
儲存