From a4b922ad9b7e99e6da3755f7ab488edb335576b5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 3 Aug 2013 17:27:05 +0000 Subject: correct invalid sizeof() use in bmesh (harmless in practice) --- source/blender/bmesh/operators/bmo_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/bmesh/operators/bmo_create.c') diff --git a/source/blender/bmesh/operators/bmo_create.c b/source/blender/bmesh/operators/bmo_create.c index e43c04f7d08..64d0ec6ac27 100644 --- a/source/blender/bmesh/operators/bmo_create.c +++ b/source/blender/bmesh/operators/bmo_create.c @@ -278,7 +278,7 @@ void bmo_contextual_create_exec(BMesh *bm, BMOperator *op) * this connectivity could be used rather then treating * them as a bunch of isolated verts. */ - BMVert **vert_arr = MEM_mallocN(sizeof(BMVert **) * totv, __func__); + BMVert **vert_arr = MEM_mallocN(sizeof(BMVert *) * totv, __func__); BMFace *f; BMO_iter_as_array(op->slots_in, "geom", BM_VERT, (void **)vert_arr, totv); -- cgit v1.2.3