summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-11-08 00:51:00 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-11-08 00:51:00 +0100
commit48ec4f732f02cd2d1dd65aed635a56fae64da4e1 (patch)
tree2e98b9161a86f438493c69ba20de4505c29f25d6
parent950824f1523f094f4453c9b671534838ebc2968c (diff)
eo2: support NULL op_descs
-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 acb4f65cfe..48c477d573 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -622,7 +622,8 @@ _eo2_class_funcs_set(_Eo_Class *klass)
622 qsort((void*)op_descs, klass->desc->ops.count, sizeof(Eo2_Op_Description), eo2_api_funcs_cmp); 622 qsort((void*)op_descs, klass->desc->ops.count, sizeof(Eo2_Op_Description), eo2_api_funcs_cmp);
623 623
624 op_id = klass->base_id; 624 op_id = klass->base_id;
625 DBG("Set functions for class '%s'", klass->desc->name); 625 DBG("Set functions for class '%s' %p", klass->desc->name, klass);
626 if (!op_descs) return;
626 for (op_desc = op_descs; op_desc->op_type != EO_OP_TYPE_INVALID; op_desc++) 627 for (op_desc = op_descs; op_desc->op_type != EO_OP_TYPE_INVALID; op_desc++)
627 { 628 {
628 if(op_desc->api_func == NULL) 629 if(op_desc->api_func == NULL)