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-05 20:53:21 +0400
committerKent Mein <mein@cs.umn.edu>2009-06-05 20:53:21 +0400
commit6c5e1b6b243e0571f32d46177c0606f510e22e46 (patch)
tree42cf3e68b220847211bd5fa453455e34038cddbc /source
parentc5b05fd4503359e929c501e3de61144d98f87e7b (diff)
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
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/poseobject.c2
1 files changed, 1 insertions, 1 deletions
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");