[Bf-blender-cvs] [5eecfbd] master: Quiet uninitialized mem use for blank cursor

Campbell Barton noreply at git.blender.org
Wed Feb 18 00:45:36 CET 2015


Commit: 5eecfbd980eb6d48e78e44854efeb98114cf4434
Author: Campbell Barton
Date:   Wed Feb 18 10:44:28 2015 +1100
Branches: master
https://developer.blender.org/rB5eecfbd980eb6d48e78e44854efeb98114cf4434

Quiet uninitialized mem use for blank cursor

harmless but may as well initialize.

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

M	intern/ghost/intern/GHOST_WindowX11.cpp

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

diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp
index 4e61926..bd64cd2 100644
--- a/intern/ghost/intern/GHOST_WindowX11.cpp
+++ b/intern/ghost/intern/GHOST_WindowX11.cpp
@@ -1375,7 +1375,7 @@ getEmptyCursor(
         ) {
 	if (!m_empty_cursor) {
 		Pixmap blank;
-		XColor dummy;
+		XColor dummy = {0};
 		char data[1] = {0};
 			
 		/* make a blank cursor */




More information about the Bf-blender-cvs mailing list