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
This commit is contained in:
Kent Mein
2009-06-03 15:24:42 +00:00
parent eafd2720f6
commit e650251948

View File

@@ -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;