projects
/
deliverable
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: do not use BT_MOVE() when the destination memory could be uninitialized
[deliverable/babeltrace.git]
/
lib
/
graph
/
graph.c
diff --git
a/lib/graph/graph.c
b/lib/graph/graph.c
index 1dc7b819c9db02c69d7a3985aca4c0ebb45cfb44..10dd1944e840808e7b9669b9b8761deca26e590e 100644
(file)
--- a/
lib/graph/graph.c
+++ b/
lib/graph/graph.c
@@
-405,7
+405,9
@@
enum bt_graph_status bt_graph_connect_ports(struct bt_graph *graph,
downstream_port, bt_port_get_name(downstream_port));
if (user_connection) {
- BT_MOVE(*user_connection, connection);
+ /* Move reference to user */
+ *user_connection = connection;
+ connection = NULL;
}
end:
This page took
0.02808 seconds
and
5
git commands to generate.