[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53911] trunk/blender/source/blender/ blenlib/intern/BLI_array.c: use malloc for BLI array reallocation.

Campbell Barton ideasman42 at gmail.com
Sat Jan 19 08:41:18 CET 2013


Revision: 53911
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53911
Author:   campbellbarton
Date:     2013-01-19 07:41:15 +0000 (Sat, 19 Jan 2013)
Log Message:
-----------
use malloc for BLI array reallocation. Existing code initializes memory.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/BLI_array.c

Modified: trunk/blender/source/blender/blenlib/intern/BLI_array.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/BLI_array.c	2013-01-19 07:35:55 UTC (rev 53910)
+++ trunk/blender/source/blender/blenlib/intern/BLI_array.c	2013-01-19 07:41:15 UTC (rev 53911)
@@ -76,7 +76,7 @@
 	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);
 




More information about the Bf-blender-cvs mailing list