From 7e9208e365a8944ab287c13837f2ec7a912c5008 Mon Sep 17 00:00:00 2001 From: Gauthier Becker <gauthierbecker@gmail.com> Date: Fri, 15 Feb 2013 00:45:35 +0000 Subject: [PATCH] Fix uninitialized variable --- Common/Context.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Common/Context.cpp b/Common/Context.cpp index b7cccb6855..4af6665233 100644 --- a/Common/Context.cpp +++ b/Common/Context.cpp @@ -92,6 +92,10 @@ CTX::CTX() color.mesh.tangents = color.mesh.line = color.mesh.quadrangle = 0; for (int i = 0; i < 20; i++) color.mesh.carousel[i] = 0; + // added by Gauthier Becker (these are not initialized by default + // leading to valgrind error) Feel free to change the default values) + mesh.switchElementTags=0; + terminal=0; } CTX *CTX::_instance = NULL; -- GitLab