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-11-24 18:11:29 +0300
committerTon Roosendaal <ton@blender.org>2006-11-24 18:11:29 +0300
commite600fdb882aaa39949c920a13df5ec0281075da2 (patch)
tree8c8c419439c4d2b4268f394c7a05699ce15380ea /source/blender
parent9d61481db49a5c78db4719eca83eb0999feb2be4 (diff)
Bugfix #5292
Crash is irregular shadow buffer, due to using un-initialized memory
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/render/intern/source/shadbuf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/shadbuf.c b/source/blender/render/intern/source/shadbuf.c
index 875155deee4..bcb35263ddd 100644
--- a/source/blender/render/intern/source/shadbuf.c
+++ b/source/blender/render/intern/source/shadbuf.c
@@ -1569,6 +1569,8 @@ static void isb_add_shadfac(ISBShadfacA **isbsapp, MemArena *mem, int facenr, sh
new->shadfac= shadfacf;
if(*isbsapp)
new->next= (*isbsapp);
+ else
+ new->next= NULL;
*isbsapp= new;
}
@@ -1762,6 +1764,8 @@ static ISBSampleA *isb_alloc_sample_transp(ISBSampleA **isbsa, MemArena *mem)
new= BLI_memarena_alloc(mem, sizeof(ISBSampleA));
if(*isbsa)
new->next= (*isbsa);
+ else
+ new->next= NULL;
*isbsa= new;
return new;