projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: bt_object_{get,put}_ref(): accept a `const` parameter
[babeltrace.git]
/
cli
/
babeltrace-cfg-cli-args-connect.c
diff --git
a/cli/babeltrace-cfg-cli-args-connect.c
b/cli/babeltrace-cfg-cli-args-connect.c
index c22fe6ad2e8bf1f75c5a0ccebe4178dff25870fe..7b4961652b7c532dc7fc97debd5ab4a94c71b883 100644
(file)
--- a/
cli/babeltrace-cfg-cli-args-connect.c
+++ b/
cli/babeltrace-cfg-cli-args-connect.c
@@
-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) {
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;
}
}
goto end;
}
}
This page took
0.025257 seconds
and
4
git commands to generate.