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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-11 20:19:08 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-11 20:19:08 +0300
commitd896c1f21f2e6b1f98a1a18dae649c065f9aa06d (patch)
treedb4c412c7bb12e251d98caeb8706530f19de28cb /source/blender/nodes/intern
parentd82e88d26521cdd8fa30c73ea3d3634721d971bd (diff)
fix crash in compositing nodes passing on NULL compbuf.
(revision 27415 from render25 branch)
Diffstat (limited to 'source/blender/nodes/intern')
-rw-r--r--source/blender/nodes/intern/CMP_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_util.c b/source/blender/nodes/intern/CMP_util.c
index 7d080304905..1d64cf0b45f 100644
--- a/source/blender/nodes/intern/CMP_util.c
+++ b/source/blender/nodes/intern/CMP_util.c
@@ -73,7 +73,7 @@ CompBuf *dupalloc_compbuf(CompBuf *cbuf)
/* instead of reference counting, we create a list */
CompBuf *pass_on_compbuf(CompBuf *cbuf)
{
- CompBuf *dupbuf= alloc_compbuf(cbuf->x, cbuf->y, cbuf->type, 0);
+ CompBuf *dupbuf= (cbuf)? alloc_compbuf(cbuf->x, cbuf->y, cbuf->type, 0): NULL;
CompBuf *lastbuf;
if(dupbuf) {