lib, bt2: add precondition check for port name unicity
[babeltrace.git] / src / lib / graph / component-sink.c
index f3093b2ac3f3ffbdf63ee4cf7bf2c537ae8ba422..1f4a5a66589533e65d83c10d5849788f31058f37 100644 (file)
@@ -113,6 +113,7 @@ enum bt_self_component_add_port_status bt_self_component_sink_add_input_port(
        struct bt_component *comp = (void *) self_comp;
 
        BT_ASSERT_PRE_NO_ERROR();
+       BT_ASSERT_PRE_INPUT_PORT_NAME_UNIQUE(comp, name);
 
        /* bt_component_add_input_port() logs details/errors */
        status = bt_component_add_input_port(comp, name, user_data, &port);
This page took 0.024657 seconds and 4 git commands to generate.