Cleanup: usages of bt_value_array_borrow_element_by_index{,_const}()
[babeltrace.git] / tests / lib / plugin.c
index 590cc29465031251c5588954154b938c49b3afd0..6ef8d5db44c8871693bc107dbf9967b27e6d9bc0 100644 (file)
@@ -188,7 +188,7 @@ static void test_sfs(const char *plugin_dir)
        ok(ret == 0 && results, "bt_query_executor_query() succeeds");
        BT_ASSERT(bt_value_is_array(results) && bt_value_array_get_length(results) == 2);
        object = bt_value_array_borrow_element_by_index_const(results, 0);
-       BT_ASSERT(object && bt_value_is_string(object));
+       BT_ASSERT(bt_value_is_string(object));
        object_str = bt_value_string_get(object);
        ok(strcmp(object_str, "get-something") == 0,
                "bt_component_class_query() receives the expected object name");
This page took 0.04806 seconds and 4 git commands to generate.