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)
This commit is contained in:
Robin Gareus 2020-02-26 01:44:23 +01:00
parent 98d7d04ae7
commit 69059d7b1b
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -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.