From a492be2318ccacf84eeaa9d6b5d0f7ede9d0d6ea Mon Sep 17 00:00:00 2001 From: Frafjord Date: Mon, 10 Jul 2017 18:03:48 -0500 Subject: [PATCH] Initializing default_context withouth initializing this pointer, line 166 in global-init.cxx will cause an error down the call stack. (visual c++ 2015 debug mode) --- src/global-init.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/global-init.cxx b/src/global-init.cxx index 7c6dc8bb2..ab089d9ce 100644 --- a/src/global-init.cxx +++ b/src/global-init.cxx @@ -171,8 +171,8 @@ enum DCState }; -static DCState default_context_state; -static DefaultContext * default_context; +static DCState default_context_state = DC_UNINITIALIZED; +static DefaultContext * default_context = nullptr; struct destroy_default_context