From 8f196db778fd539f4ba985c63f9e358559abb078 Mon Sep 17 00:00:00 2001 From: hawken Date: Wed, 12 Oct 2016 12:18:44 +0200 Subject: [PATCH] Fix for segfault on uninitialized state_file --- src/Instance.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Instance.hxx b/src/Instance.hxx index 3aba2524a..765f588d1 100644 --- a/src/Instance.hxx +++ b/src/Instance.hxx @@ -90,7 +90,7 @@ struct Instance final StateFile *state_file; Instance() - :idle_monitor(event_loop, BIND_THIS_METHOD(OnIdle)) {} + :idle_monitor(event_loop, BIND_THIS_METHOD(OnIdle)), state_file(nullptr) {} /** * Initiate shutdown. Wrapper for EventLoop::Break().