Fix runtime check uninitialized pointer
authorBenoit Bolsee <benoit.bolsee@online.be>
Sun, 15 Nov 2009 23:43:20 +0000 (23:43 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Sun, 15 Nov 2009 23:43:20 +0000 (23:43 +0000)
source/blender/editors/mesh/mesh_data.c

index eb6927cec657b47f44f60bdadfdddbd824c7d615..1369d1a7263e0b2e2cda520fe0c0c84256ef063e 100644 (file)
@@ -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 */