summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-09-30 14:32:47 +0100
committerTom Hacohen <tom@stosb.com>2013-09-30 14:32:47 +0100
commitbaf0fc426846743faef4165786a7e589b9c90347 (patch)
tree09db682eaaca7e8fbec06b0a4686508a75b16e44 /src
parentde6f57fac0a21f7729893b5d3d7a5606e9dcb1ce (diff)
Eo: Don't compare desc to NULL as it can never be NULL at that stage.
Fixes coverity CID1039420.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/eo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index b838bb328b..b15bd84404 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -496,7 +496,7 @@ _eo_class_base_op_init(_Eo_Class *klass)
496 496
497 klass->base_id = _eo_ops_last_id; 497 klass->base_id = _eo_ops_last_id;
498 498
499 if (desc && desc->ops.base_op_id) 499 if (desc->ops.base_op_id)
500 *(desc->ops.base_op_id) = klass->base_id; 500 *(desc->ops.base_op_id) = klass->base_id;
501 501
502 _eo_ops_last_id += desc->ops.count + 1; 502 _eo_ops_last_id += desc->ops.count + 1;