X-Git-Url: https://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fcomponent.c;h=569a743e7c7cc555c8048f1c4d81d2c8db5000fa;hp=85d6aae9a456930944316b8230b430242c72de6f;hb=805e57b014d3763c86568a0b966f4d5093a53e03;hpb=643012d55c789824e01f7d2ad5db8063d7c7fae3 diff --git a/src/lib/graph/component.c b/src/lib/graph/component.c index 85d6aae9..569a743e 100644 --- a/src/lib/graph/component.c +++ b/src/lib/graph/component.c @@ -475,6 +475,7 @@ enum bt_self_component_add_port_status bt_component_add_input_port( struct bt_component *component, const char *name, void *user_data, struct bt_port **port, const char *api_func) { + BT_ASSERT_PRE_NO_ERROR_FROM_FUNC(api_func); BT_ASSERT_PRE_COMP_NON_NULL_FROM_FUNC(api_func, component); BT_ASSERT_PRE_NAME_NON_NULL_FROM_FUNC(api_func, name); BT_ASSERT_PRE_FROM_FUNC(api_func, "input-port-name-is-unique", @@ -492,6 +493,7 @@ enum bt_self_component_add_port_status bt_component_add_output_port( void *user_data, struct bt_port **port, const char *api_func) { + BT_ASSERT_PRE_NO_ERROR_FROM_FUNC(api_func); BT_ASSERT_PRE_COMP_NON_NULL_FROM_FUNC(api_func, component); BT_ASSERT_PRE_NAME_NON_NULL_FROM_FUNC(api_func, name); BT_ASSERT_PRE_FROM_FUNC(api_func, "output-port-name-is-unique",