lib: bt_object_{get,put}_ref(): accept a `const` parameter
[babeltrace.git] / cli / babeltrace-cfg-cli-args-connect.c
index c22fe6ad2e8bf1f75c5a0ccebe4178dff25870fe..7b4961652b7c532dc7fc97debd5ab4a94c71b883 100644 (file)
@@ -296,7 +296,8 @@ static struct bt_config_component *find_component_in_array(GPtrArray *comps,
                struct bt_config_component *comp = g_ptr_array_index(comps, i);
 
                if (strcmp(name, comp->instance_name->str) == 0) {
-                       found_comp = bt_object_get_ref(comp);
+                       found_comp = comp;
+                       bt_object_get_ref(found_comp);
                        goto end;
                }
        }
This page took 0.029831 seconds and 4 git commands to generate.