Skip to content

Commit

Permalink
Initializing default_context
Browse files Browse the repository at this point in the history
withouth initializing this pointer, line 166 in global-init.cxx will
cause an error down the call stack. (visual c++ 2015 debug mode)
  • Loading branch information
Frafjord authored and wilx committed Apr 9, 2019
1 parent 1215484 commit a492be2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/global-init.cxx
Expand Up @@ -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
Expand Down

0 comments on commit a492be2

Please sign in to comment.