eo: Make sure we have a va_end matching the va_start before returning.
Was fien on the normal path but missing on the error path. Also remove the spurious break after the return. Would never be reached. Looks like a copy and paste bug to me. CID 1187638
This commit is contained in:
parent
44a54caa16
commit
3716e9b12c
|
@ -834,8 +834,8 @@ eo_class_new(const Eo_Class_Description *desc, const Eo_Class *parent_id, ...)
|
|||
case EO_CLASS_TYPE_REGULAR_NO_INSTANT:
|
||||
ERR("Regular non-instantiable classes ('%s') aren't allowed in class ('%s') extension list",
|
||||
extn->desc->name, desc->name);
|
||||
va_end(p_list);
|
||||
return NULL;
|
||||
break;
|
||||
case EO_CLASS_TYPE_REGULAR:
|
||||
case EO_CLASS_TYPE_INTERFACE:
|
||||
case EO_CLASS_TYPE_MIXIN:
|
||||
|
|
Loading…
Reference in New Issue