projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib, bt2: add precondition check for port name unicity
[babeltrace.git]
/
src
/
lib
/
graph
/
component-source.c
diff --git
a/src/lib/graph/component-source.c
b/src/lib/graph/component-source.c
index ed3da16016767df8d9be72b6f8936489a602780c..879af72474e0fa1a91371c46e1cd82b23f9f21e4 100644
(file)
--- a/
src/lib/graph/component-source.c
+++ b/
src/lib/graph/component-source.c
@@
-107,6
+107,7
@@
enum bt_self_component_add_port_status bt_self_component_source_add_output_port(
struct bt_port *port = NULL;
BT_ASSERT_PRE_NO_ERROR();
+ BT_ASSERT_PRE_OUTPUT_PORT_NAME_UNIQUE(comp, name);
/* bt_component_add_output_port() logs details and errors */
status = bt_component_add_output_port(comp, name, user_data, &port);
This page took
0.022608 seconds
and
4
git commands to generate.