From 97f9277ba6982c2b1eb3ce89de34943d800f82c6 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Tue, 24 Nov 2020 13:59:26 +0100 Subject: [PATCH] Qt ui: make sure ui_state is initialzed to 0 --- selfdrive/ui/qt/window.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/window.hpp b/selfdrive/ui/qt/window.hpp index fa68cec1d0..1f5a4c10ee 100644 --- a/selfdrive/ui/qt/window.hpp +++ b/selfdrive/ui/qt/window.hpp @@ -38,7 +38,7 @@ private: QTimer * timer; QTimer * backlight_timer; - UIState * ui_state; + UIState * ui_state = nullptr; QtSound sound; bool onroad = true;