[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24575] trunk/blender/source/blender/ editors/mesh/mesh_data.c: Fix runtime check uninitialized pointer
Benoit Bolsee
benoit.bolsee at online.be
Mon Nov 16 00:43:20 CET 2009
Revision: 24575
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24575
Author: ben2610
Date: 2009-11-16 00:43:20 +0100 (Mon, 16 Nov 2009)
Log Message:
-----------
Fix runtime check uninitialized pointer
Modified Paths:
--------------
trunk/blender/source/blender/editors/mesh/mesh_data.c
Modified: trunk/blender/source/blender/editors/mesh/mesh_data.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/mesh_data.c 2009-11-15 19:25:34 UTC (rev 24574)
+++ trunk/blender/source/blender/editors/mesh/mesh_data.c 2009-11-15 23:43:20 UTC (rev 24575)
@@ -464,7 +464,7 @@
MFace *mf = mesh->mface;
MEdge *med, *med_orig;
EdgeHash *eh = BLI_edgehash_new();
- int i, *index, totedge, totface = mesh->totface;
+ int i, totedge, totface = mesh->totface;
if(mesh->totedge==0)
update= 0;
@@ -503,7 +503,7 @@
ehi = BLI_edgehashIterator_new(eh);
med = CustomData_get_layer(&edata, CD_MEDGE);
for(i = 0; !BLI_edgehashIterator_isDone(ehi);
- BLI_edgehashIterator_step(ehi), ++i, ++med, ++index) {
+ BLI_edgehashIterator_step(ehi), ++i, ++med) {
if(update && (med_orig=BLI_edgehashIterator_getValue(ehi))) {
*med= *med_orig; /* copy from the original */
More information about the Bf-blender-cvs
mailing list