瀏覽代碼

Fix missing-initializer warning

Nick Mathewson 10 年之前
父節點
當前提交
fabfa28c48
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/or/main.c

+ 3 - 1
src/or/main.c

@@ -1225,7 +1225,9 @@ typedef struct {
   time_t check_for_correct_dns;
 } time_to_t;
 
-static time_to_t time_to = { 0 };
+static time_to_t time_to = {
+  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+};
 
 /** Reset all the time_to's so we'll do all our actions again as if we
  * just started up.