diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-01 20:13:59 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-01 20:13:59 +0200 |
commit | 1c8b6e1b4296b4fbabc258f9f94635390a319522 (patch) | |
tree | d48b1a8dce93b63e31e0ce6b50aeb9bffc0e39e5 | |
parent | 45cf29b7c5aa315f59b8fccda4639da5508a232d (diff) |
Initialize uninitialized variables
If a session with a feedback loop is loaded, Graph::rechain()
is never called, and _n_terminal_nodes[] remains unset.
-rw-r--r-- | libs/ardour/graph.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc index f312826524..ed157aeb5d 100644 --- a/libs/ardour/graph.cc +++ b/libs/ardour/graph.cc @@ -72,6 +72,9 @@ Graph::Graph (Session& session) g_atomic_int_set (&_idle_thread_cnt, 0); g_atomic_int_set (&_trigger_queue_size, 0); + _n_terminal_nodes[0] = 0; + _n_terminal_nodes[1] = 0; + /* pre-allocate memory */ _trigger_queue.reserve (1024); |