diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-03 21:27:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-03 21:27:05 +0400 |
commit | a4b922ad9b7e99e6da3755f7ab488edb335576b5 (patch) | |
tree | afc58e50e2bd3e345d550db74903d62d2ebaaacc /source/blender/bmesh/operators/bmo_create.c | |
parent | 8119791703f41c1b09dcc0c5747dc38df7d1bbd6 (diff) |
correct invalid sizeof() use in bmesh (harmless in practice)
Diffstat (limited to 'source/blender/bmesh/operators/bmo_create.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |