Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-12-24 18:59:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-24 18:59:15 +0400
commitfb989c2a6531ffb53aad2cb8aba85f974d8e9fcf (patch)
tree155d2f726ccc96ae7cbd52872b89ff02b1496bd4 /source/blender/bmesh/intern
parent128e6d51baebb9e3724cf84538ec074ca3f230b3 (diff)
code cleanup: don't alloca zero size and remove paranoid NULL checks (checked all uses and there not needed).
Diffstat (limited to 'source/blender/bmesh/intern')
-rw-r--r--source/blender/bmesh/intern/bmesh_interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_interp.c b/source/blender/bmesh/intern/bmesh_interp.c
index df58b90bc03..4ec91b8d8d7 100644
--- a/source/blender/bmesh/intern/bmesh_interp.c
+++ b/source/blender/bmesh/intern/bmesh_interp.c
@@ -603,7 +603,7 @@ void BM_loop_interp_from_face(BMesh *bm, BMLoop *target, BMFace *source,
{
BMLoop *l_iter;
BMLoop *l_first;
- void **vblocks = BLI_array_alloca(vblocks, do_vertex ? source->len : 0);
+ void **vblocks = do_vertex ? BLI_array_alloca(vblocks, source->len) : NULL;
void **blocks = BLI_array_alloca(blocks, source->len);
float (*cos)[3] = BLI_array_alloca(cos, source->len);
float *w = BLI_array_alloca(w, source->len);