[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53133] trunk/blender/source/blender/ windowmanager/intern/wm_operators.c: fix for crash in recent changes, missing NULL check

Campbell Barton ideasman42 at gmail.com
Tue Dec 18 18:06:35 CET 2012


Revision: 53133
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53133
Author:   campbellbarton
Date:     2012-12-18 17:06:31 +0000 (Tue, 18 Dec 2012)
Log Message:
-----------
fix for crash in recent changes, missing NULL check

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: trunk/blender/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_operators.c	2012-12-18 17:00:49 UTC (rev 53132)
+++ trunk/blender/source/blender/windowmanager/intern/wm_operators.c	2012-12-18 17:06:31 UTC (rev 53133)
@@ -615,13 +615,17 @@
 
 	if (member_found) {
 		prop_str = RNA_path_property_py(ptr, prop, index);
-		ret = BLI_sprintfN("bpy.context.%s.%s", member_found, prop_str);
-		MEM_freeN(prop_str);
+		if (prop_str) {
+			ret = BLI_sprintfN("bpy.context.%s.%s", member_found, prop_str);
+			MEM_freeN(prop_str);
+		}
 	}
 	else if (member_id) {
 		prop_str = RNA_path_struct_property_py(ptr, prop, index);
-		ret = BLI_sprintfN("bpy.context.%s.%s", member_id, prop_str);
-		MEM_freeN(prop_str);
+		if (prop_str) {
+			ret = BLI_sprintfN("bpy.context.%s.%s", member_id, prop_str);
+			MEM_freeN(prop_str);
+		}
 	}
 
 	BLI_freelistN(&lb);




More information about the Bf-blender-cvs mailing list