Correct error in recent commit
authorCampbell Barton <ideasman42@gmail.com>
Thu, 16 Jun 2016 12:11:36 +0000 (22:11 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 16 Jun 2016 12:18:59 +0000 (22:18 +1000)
source/blender/bmesh/tools/bmesh_decimate_collapse.c

index 3ea7dae536b58655a0f3f2176c5c3054c8e3c780..1c8be09ab4d123dc0d4f746f238bbc19c46510c0 100644 (file)
@@ -632,6 +632,8 @@ static void bm_decim_triangulate_end(BMesh *bm, const int edges_tri_tot)
        BMEdge **edges_tri = MEM_mallocN(MIN2(edges_tri_tot, bm->totedge) * sizeof(*edges_tri), __func__);
        STACK_DECLARE(edges_tri);
 
+       STACK_INIT(edges_tri, MIN2(edges_tri_tot, bm->totedge));
+
        /* boundary edges */
        BM_ITER_MESH (e, &iter, bm, BM_EDGES_OF_MESH) {
                BMLoop *l_a, *l_b;