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:
authorTon Roosendaal <ton@blender.org>2006-07-13 15:36:26 +0400
committerTon Roosendaal <ton@blender.org>2006-07-13 15:36:26 +0400
commit464f3bd9667940b49c9bd2f8d5dfef6cef45ef74 (patch)
treea85cfa1c6916034302c59dc51624b15f9135eb34 /source/blender/blenloader
parent3bc73506eadf532a9c84cfcc7ff7d21b9d0d65dc (diff)
Three more valgrind discoveries:
- readfile.c, version patch for new toolsettings used a malloc, using unitialized variables - despgraph, another malloc changed to calloc - timer code for render ESC: unitialized variable in struct
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 2afcbc85694..51dfc927251 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -5197,7 +5197,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
while(sce){
if(sce->toolsettings == NULL){
- sce->toolsettings = MEM_mallocN(sizeof(struct ToolSettings),"Tool Settings Struct");
+ sce->toolsettings = MEM_callocN(sizeof(struct ToolSettings),"Tool Settings Struct");
sce->toolsettings->cornertype=0;
sce->toolsettings->degr = 90;
sce->toolsettings->step = 9;