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>2015-02-23 05:55:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-02-23 05:57:06 +0300
commit50c977b54d543cca93fb747a99b15682b5d15dfb (patch)
tree71b0dfa0ba8a0a7be8bf0bc4a4be28da4a1fe5db
parentd580c90469b4ba182bd8aa8e7a4e289884e426fe (diff)
CustomData: replace calloc -> malloc
stack array is uninitialized, relying on calloc here would just hide bugs.
-rw-r--r--source/blender/blenkernel/intern/customdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c
index 94dc84ec4af..585ae905013 100644
--- a/source/blender/blenkernel/intern/customdata.c
+++ b/source/blender/blenkernel/intern/customdata.c
@@ -2232,7 +2232,7 @@ void CustomData_interp(const CustomData *source, CustomData *dest,
* elements
*/
if (count > SOURCE_BUF_SIZE)
- sources = MEM_callocN(sizeof(*sources) * count, __func__);
+ sources = MEM_mallocN(sizeof(*sources) * count, __func__);
/* interpolates a layer at a time */
dest_i = 0;
@@ -3013,7 +3013,7 @@ void CustomData_bmesh_interp(
* elements
*/
if (count > SOURCE_BUF_SIZE)
- sources = MEM_callocN(sizeof(*sources) * count, __func__);
+ sources = MEM_mallocN(sizeof(*sources) * count, __func__);
/* interpolates a layer at a time */
for (i = 0; i < data->totlayer; ++i) {