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>2013-01-19 11:41:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-19 11:41:15 +0400
commit399763015769ca8e35a5639748c9bb08fbfd984b (patch)
tree96e271d6048c3900837849644cd124fd76402617 /source/blender/blenlib/intern/BLI_array.c
parent23af6743c770257d94f62840ab520ffcfcb22042 (diff)
use malloc for BLI array reallocation. Existing code initializes memory.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_array.c')
-rw-r--r--source/blender/blenlib/intern/BLI_array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_array.c b/source/blender/blenlib/intern/BLI_array.c
index 6bfcfd7d788..5823b7db3f1 100644
--- a/source/blender/blenlib/intern/BLI_array.c
+++ b/source/blender/blenlib/intern/BLI_array.c
@@ -76,7 +76,7 @@ void _bli_array_grow_func(void **arr_p, const void *arr_static,
void *arr = *arr_p;
void *arr_tmp;
- arr_tmp = MEM_callocN(sizeof_arr_p *
+ arr_tmp = MEM_mallocN(sizeof_arr_p *
((num < arr_count) ?
(arr_count * 2 + 2) : (arr_count + num)), alloc_str);