diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-15 08:36:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-15 08:36:33 +0400 |
commit | 4b4bb410e04ee83327171723395005e4c6ecfc32 (patch) | |
tree | 21b3833ba6620bc8ea47295c44cb2f48a6cc4a53 /source/blender/blenkernel/intern/mball.c | |
parent | 57372f4ef8fcf428d7f38faca8e9b4299c28a4ce (diff) |
Curve: replace calloc with malloc for values immediately written into
Diffstat (limited to 'source/blender/blenkernel/intern/mball.c')
-rw-r--r-- | source/blender/blenkernel/intern/mball.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mball.c b/source/blender/blenkernel/intern/mball.c index fc6f9149841..47aeb18ff36 100644 --- a/source/blender/blenkernel/intern/mball.c +++ b/source/blender/blenkernel/intern/mball.c @@ -2361,8 +2361,8 @@ void BKE_mball_polygonize(EvaluationContext *eval_ctx, Scene *scene, Object *ob, process.indices = NULL; a = process.vertices.count; - dl->verts = co = MEM_mallocN(sizeof(float) * 3 * a, "mballverts"); - dl->nors = no = MEM_mallocN(sizeof(float) * 3 * a, "mballnors"); + dl->verts = co = MEM_mallocN(sizeof(float[3]) * a, "mballverts"); + dl->nors = no = MEM_mallocN(sizeof(float[3]) * a, "mballnors"); for (a = 0; a < process.vertices.count; ptr++, a++, no += 3, co += 3) { copy_v3_v3(co, ptr->co); |