projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt_port_output_message_iterator_create(): check that graph has no sinks
[babeltrace.git]
/
lib
/
graph
/
iterator.c
diff --git
a/lib/graph/iterator.c
b/lib/graph/iterator.c
index 01c21128e84c69ea3cb7ac3d598e55d96aa0093f..11f17dcdea31d1e2b7371205ef362f39ec1f6fd4 100644
(file)
--- a/
lib/graph/iterator.c
+++ b/
lib/graph/iterator.c
@@
-750,6
+750,8
@@
bt_port_output_message_iterator_create(struct bt_graph *graph,
(void *) graph,
"Output port is not part of graph: %![graph-]+g, %![port-]+p",
graph, output_port);
(void *) graph,
"Output port is not part of graph: %![graph-]+g, %![port-]+p",
graph, output_port);
+ BT_ASSERT_PRE(!graph->has_sink,
+ "Graph already has a sink component: %![graph-]+g");
/* Create message iterator */
BT_LIB_LOGD("Creating message iterator on output port: "
/* Create message iterator */
BT_LIB_LOGD("Creating message iterator on output port: "
This page took
0.023493 seconds
and
4
git commands to generate.