[Bf-blender-cvs] [27b67340222] blender2.8: GHOST: Fix uninitialized var

Clément Foucault noreply at git.blender.org
Mon Jun 11 17:05:01 CEST 2018


Commit: 27b673402228aeede8369d99bf64f3da21541058
Author: Clément Foucault
Date:   Mon Jun 11 17:04:44 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB27b673402228aeede8369d99bf64f3da21541058

GHOST: Fix uninitialized var

Was causing crash on startup.

===================================================================

M	intern/ghost/intern/GHOST_ContextGLX.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_ContextGLX.cpp b/intern/ghost/intern/GHOST_ContextGLX.cpp
index 1365a1a9c24..c94151a1a0e 100644
--- a/intern/ghost/intern/GHOST_ContextGLX.cpp
+++ b/intern/ghost/intern/GHOST_ContextGLX.cpp
@@ -305,7 +305,7 @@ const bool GLXEW_ARB_create_context_robustness =
 		fprintf(stderr, "Warning! GLX_ARB_create_context not available.\n");
 	}
 
-	GHOST_TSuccess success;
+	GHOST_TSuccess success = GHOST_kSuccess;
 
 	if (m_context != NULL) {
 		if (!s_sharedContext)



More information about the Bf-blender-cvs mailing list