From 50ec2476eb5c7c65042b1b583ef70c52bd1acd49 Mon Sep 17 00:00:00 2001 From: David Allemang Date: Wed, 20 May 2020 22:30:41 -0400 Subject: [PATCH] fix uninitialized state being potentially (usually) invalid --- vis/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vis/src/main.cpp b/vis/src/main.cpp index 922d7ea..0c032e7 100644 --- a/vis/src/main.cpp +++ b/vis/src/main.cpp @@ -225,7 +225,7 @@ void run(const std::string &config_file, GLFWwindow *window) { auto scene = YAML::LoadFile(config_file); - State state; + State state{}; glfwSetWindowUserPointer(window, &state); state.dimension = scene["dimension"].as();