Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-11-16 02:43:20 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2009-11-16 02:43:20 +0300
commit923e67fe1faa70cfda7ccd1a0a0d58ecbd54cc20 (patch)
tree52efcdc3bcd934653f2d09afea755c2a2769d1b7 /source/blender/editors/mesh/mesh_data.c
parent11cfdfa2643bb380fc0596c737650643ce4a45be (diff)
Fix runtime check uninitialized pointer
Diffstat (limited to 'source/blender/editors/mesh/mesh_data.c')
-rw-r--r--source/blender/editors/mesh/mesh_data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c
index eb6927cec65..1369d1a7263 100644
--- a/source/blender/editors/mesh/mesh_data.c
+++ b/source/blender/editors/mesh/mesh_data.c
@@ -464,7 +464,7 @@ static void mesh_calc_edges(Mesh *mesh, int update)
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 @@ static void mesh_calc_edges(Mesh *mesh, int update)
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 */