From 692b38d2b3674e8e09d80f7007167f32db4d0076 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 25 Feb 2016 12:29:11 -0500 Subject: [PATCH] Fix error check not checking for BT_COMPONENT_STATUS_OK MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- lib/plugin-system/component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1