瀏覽代碼

CEventLoop: Add a missing initializer to EventLoopTimer.

Andreas Kling 6 年之前
父節點
當前提交
caeb4b7a7e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libraries/LibCore/CEventLoop.h

+ 1 - 1
Libraries/LibCore/CEventLoop.h

@@ -73,7 +73,7 @@ private:
     struct EventLoopTimer {
         int timer_id { 0 };
         int interval { 0 };
-        timeval fire_time;
+        timeval fire_time { 0, 0 };
         bool should_reload { false };
         WeakPtr<CObject> owner;