diff options
author | Kent Mein <mein@cs.umn.edu> | 2009-06-03 19:24:42 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2009-06-03 19:24:42 +0400 |
commit | e650251948790e4e2f3819810953b68eee9247c7 (patch) | |
tree | 7e86e1b7c777b43284206b678e7a4964271f1a0d /source | |
parent | eafd2720f65224791a59e763c1a9de529dfe70d5 (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.c | 10 |
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; |