From baf0fc426846743faef4165786a7e589b9c90347 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 30 Sep 2013 14:32:47 +0100 Subject: [PATCH] Eo: Don't compare desc to NULL as it can never be NULL at that stage. Fixes coverity CID1039420. --- src/lib/eo/eo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) klass->base_id = _eo_ops_last_id; - if (desc && desc->ops.base_op_id) + if (desc->ops.base_op_id) *(desc->ops.base_op_id) = klass->base_id; _eo_ops_last_id += desc->ops.count + 1; -- 2.34.1