X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fcomponent-source.c;h=879af72474e0fa1a91371c46e1cd82b23f9f21e4;hb=157a98edd5aebe1b6ab7f60a49d8430450fabe76;hp=ed3da16016767df8d9be72b6f8936489a602780c;hpb=5d9ef4cb64e5bd7793d443cbfcc0248bb8804580;p=babeltrace.git diff --git a/src/lib/graph/component-source.c b/src/lib/graph/component-source.c index ed3da160..879af724 100644 --- 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);