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
path: root/source
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2009-06-03 19:24:42 +0400
committerKent Mein <mein@cs.umn.edu>2009-06-03 19:24:42 +0400
commite650251948790e4e2f3819810953b68eee9247c7 (patch)
tree7e86e1b7c777b43284206b678e7a4964271f1a0d /source
parenteafd2720f65224791a59e763c1a9de529dfe70d5 (diff)
coverity CID: 374
Checker: FORWARD_NULL (help) File: base/src/source/blender/src/toolbox.c Function: tb_do_render Description: Variable "ca" tracked as NULL was dereferenced. Moved check for null to include else statement. Kent
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/toolbox.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c
index b675f6868f8..8da636f270f 100644
--- a/source/blender/src/toolbox.c
+++ b/source/blender/src/toolbox.c
@@ -1545,10 +1545,12 @@ static void tb_do_render(void *arg, int event){
ca= G.vd->camera->data;
else return;
- if (ca && (ca->flag & CAM_SHOWPASSEPARTOUT))
- ca->flag &= ~CAM_SHOWPASSEPARTOUT;
- else
- ca->flag |= CAM_SHOWPASSEPARTOUT;
+ if (ca) {
+ if (ca->flag & CAM_SHOWPASSEPARTOUT)
+ ca->flag &= ~CAM_SHOWPASSEPARTOUT;
+ else
+ ca->flag |= CAM_SHOWPASSEPARTOUT;
+ }
allqueue(REDRAWVIEW3D, 0);
}
break;