summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-02-26 01:44:23 +0100
committerRobin Gareus <robin@gareus.org>2020-02-26 01:44:23 +0100
commit69059d7b1bf59b1dc3c1f1af2e1ba2c7dc34ba5f (patch)
treef7107d3df2c20f79c72a3b773ca7fdfcda581a88 /libs/ardour/session.cc
parent98d7d04ae787d6b50715f2aac3be01eba8f7c5dc (diff)
Fix Conditional jump or move depends on uninitialised value(s)
(valgrind trace, line-numbers from mixbus+6.0-190-g0ec6bc35a) This may happen initially for unconnected graph nodes, e.g. Foldback Busses from ARDOUR::Session::post_engine_init(). ==29797== Conditional jump or move depends on uninitialised value(s) ==29797== at 0x6167D3F: trace_terminal(boost::shared_ptr<ARDOUR::Route>, boost::shared_ptr<ARDOUR::Route>, bool) (session.cc:2174) ==29797== by 0x6167D99: trace_terminal(boost::shared_ptr<ARDOUR::Route>, boost::shared_ptr<ARDOUR::Route>, bool) (session.cc:2174) ==29797== by 0x6167D99: trace_terminal(boost::shared_ptr<ARDOUR::Route>, boost::shared_ptr<ARDOUR::Route>, bool) (session.cc:2174) ==29797== by 0x616890D: ARDOUR::Session::resort_routes_using(boost::shared_ptr<std::__cxx11::list<boost::shared_ptr<ARDOUR::Route>, std::allocator<boost::shared_ptr<ARDOUR::Route> > > >) (session.cc:2289)
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index 66e1d10caf..10fa5ed829 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -2143,7 +2143,7 @@ Session::resort_routes_using (boost::shared_ptr<RouteList> r)
for (RouteList::iterator j = r->begin(); j != r->end(); ++j) {
- bool via_sends_only;
+ bool via_sends_only = false;
/* See if this *j feeds *i according to the current state of the JACK
connections and internal sends.