summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2014-04-17 21:10:34 +0200
committerCedric Bail <cedric.bail@free.fr>2014-04-17 21:10:34 +0200
commitcb43636bd128a927b0923a4331f2e5c29f264fea (patch)
tree1be856665a78b29b091e4e98d4c2eed5701fe5c1
parent1816949ee5383adda0d3afd5550184dc68e39f9e (diff)
eo: do not risk dereferencing NULL.
CID 1199563.
-rw-r--r--src/lib/eo/eo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 5f8abdb..d74229c 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -196,10 +196,11 @@ _eo_op_id_desc_get(Eo_Op op)
196 return NULL; 196 return NULL;
197 197
198 klass = _eo_op_class_get(op); 198 klass = _eo_op_class_get(op);
199 DBG("klass %p %s", klass, klass->desc->name);
200 199
201 if (klass) 200 if (klass)
202 { 201 {
202 DBG("klass %p %s", klass, klass->desc->name);
203
203 op_descs = klass->desc->ops.descs2; 204 op_descs = klass->desc->ops.descs2;
204 for (i = 0; i < klass->desc->ops.count; i++) 205 for (i = 0; i < klass->desc->ops.count; i++)
205 { 206 {