From: Jérémie Galarneau Date: Thu, 25 Feb 2016 17:29:11 +0000 (-0500) Subject: Fix error check not checking for BT_COMPONENT_STATUS_OK X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=692b38d2b3674e8e09d80f7007167f32db4d0076;p=deliverable%2Fbabeltrace.git Fix error check not checking for BT_COMPONENT_STATUS_OK Signed-off-by: Jérémie Galarneau --- diff --git a/lib/plugin-system/component.c b/lib/plugin-system/component.c index 5b424cd84..4144d5d4d 100644 --- a/lib/plugin-system/component.c +++ b/lib/plugin-system/component.c @@ -133,7 +133,7 @@ struct bt_component *bt_component_create( component_class->init(component, params); ret = component_validation_funcs[type](component); - if (ret) { + if (ret != BT_COMPONENT_STATUS_OK) { BT_PUT(component); goto end; }