From 83732f8a9b25f114e7b773b85077c606b40c8abf Mon Sep 17 00:00:00 2001 From: Ben Harper Date: Sun, 10 Mar 2019 06:15:47 +0200 Subject: [PATCH] Fix uninitialized variable m_QuickstartGen I noticed this on an x64 build on VS 2017 15.9.8 I also re-ordered the variables so that it's easier to spot an uninitialized one. --- src/Driver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Driver.cpp b/src/Driver.cpp index 4e5a9601..f50cf03e 100644 --- a/src/Driver.cpp +++ b/src/Driver.cpp @@ -65,16 +65,17 @@ void DriverOptionsInit(DriverOptions* self) self->m_DisplayStats = false; self->m_GenDagOnly = false; self->m_Quiet = false; + self->m_IdeGen = false; self->m_Clean = false; self->m_Rebuild = false; - self->m_IdeGen = false; self->m_DebugSigning = false; self->m_ContinueOnError = false; + self->m_QuickstartGen = false; self->m_ThreadCount = GetCpuCount(); self->m_WorkingDir = nullptr; self->m_DAGFileName = ".tundra2.dag"; self->m_ProfileOutput = nullptr; - #if defined(TUNDRA_WIN32) +#if defined(TUNDRA_WIN32) self->m_RunUnprotected = false; #endif }