[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22973] branches/blender2.5/blender/source /blender/editors/object/object_edit.c: Bugfix for usage of uninitialized variable on windows (props_ptr. data needs to be set to NULL before calling uiItemFullO() ) - please check if this also compiles on gcc
Daniel Genrich
daniel.genrich at gmx.net
Thu Sep 3 21:08:49 CEST 2009
Revision: 22973
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22973
Author: genscher
Date: 2009-09-03 21:08:16 +0200 (Thu, 03 Sep 2009)
Log Message:
-----------
Bugfix for usage of uninitialized variable on windows (props_ptr.data needs to be set to NULL before calling uiItemFullO() ) - please check if this also compiles on gcc
Modified Paths:
--------------
branches/blender2.5/blender/source/blender/editors/object/object_edit.c
Modified: branches/blender2.5/blender/source/blender/editors/object/object_edit.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/object/object_edit.c 2009-09-03 18:38:52 UTC (rev 22972)
+++ branches/blender2.5/blender/source/blender/editors/object/object_edit.c 2009-09-03 19:08:16 UTC (rev 22973)
@@ -2951,7 +2951,7 @@
else if (ob->id.lib) {
uiPopupMenu *pup= uiPupMenuBegin(C, "OK?", ICON_QUESTION);
uiLayout *layout= uiPupMenuLayout(pup);
- PointerRNA props_ptr;
+ PointerRNA props_ptr = {0};
/* create operator menu item with relevant properties filled in */
props_ptr= uiItemFullO(layout, op->type->name, 0, op->idname, props_ptr.data, WM_OP_EXEC_REGION_WIN, UI_ITEM_O_RETURN_PROPS);
More information about the Bf-blender-cvs
mailing list