From 6c5e1b6b243e0571f32d46177c0606f510e22e46 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Fri, 5 Jun 2009 16:53:21 +0000 Subject: [PATCH] coverity issue CID: 97 Checker: FORWARD_NULL (help) File: base/src/source/blender/src/poseobject.c Function: pose_special_editmenu Description: Variable "ob" tracked as NULL was dereferenced. logic was wrong (gets complicated when you use !'s ;)) Kent --- source/blender/src/poseobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/src/poseobject.c b/source/blender/src/poseobject.c index 551aca0cc91..0bea1fea943 100644 --- a/source/blender/src/poseobject.c +++ b/source/blender/src/poseobject.c @@ -551,7 +551,7 @@ void pose_special_editmenu(void) short nr; /* paranoia checks */ - if(!ob && !ob->pose) return; + if(!ob || !ob->pose) return; if(ob==G.obedit || (ob->flag & OB_POSEMODE)==0) return; nr= pupmenu("Specials%t|Select Constraint Target%x1|Flip Left-Right Names%x2|Calculate Paths%x3|Clear Paths%x4|Clear User Transform %x5|Relax Pose %x6|%l|AutoName Left-Right%x7|AutoName Front-Back%x8|AutoName Top-Bottom%x9");