eo2: support NULL op_descs

This commit is contained in:
Jérémy Zurcher 2013-11-08 00:51:00 +01:00 committed by Tom Hacohen
parent b8e9b14699
commit 9c1856bf82
1 changed files with 2 additions and 1 deletions

View File

@ -623,7 +623,8 @@ _eo2_class_funcs_set(_Eo_Class *klass)
qsort((void*)op_descs, klass->desc->ops.count, sizeof(Eo2_Op_Description), eo2_api_funcs_cmp);
op_id = klass->base_id;
DBG("Set functions for class '%s'", klass->desc->name);
DBG("Set functions for class '%s' %p", klass->desc->name, klass);
if (!op_descs) return;
for (op_desc = op_descs; op_desc->op_type != EO_OP_TYPE_INVALID; op_desc++)
{
if(op_desc->api_func == NULL)