diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-04 07:26:01 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-04 07:26:01 +0400 |
commit | 45b02cee471dd75d54fc74d3bd6072ac7689d205 (patch) | |
tree | ea1a08ca98e0e122fbd17477658c732cf4997217 /source/blender/makesrna/intern/rna_access.c | |
parent | 2bba04f1b0c3fa3ebee7958706147e07fb413f56 (diff) |
Code cleanup: no need to use calloc when memory is initialized after
also replace AT with __func__ since AT expands the full pathname
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index ae8280e9ec4..5e0ed7cd08b 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -5733,7 +5733,7 @@ void RNA_parameter_set(ParameterList *parms, PropertyRNA *parm, const void *valu size *= data_alloc->array_tot; if (data_alloc->array) MEM_freeN(data_alloc->array); - data_alloc->array = MEM_mallocN(size, AT); + data_alloc->array = MEM_mallocN(size, __func__); memcpy(data_alloc->array, value, size); } else { |