From 69059d7b1bf59b1dc3c1f1af2e1ba2c7dc34ba5f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 26 Feb 2020 01:44:23 +0100 Subject: 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, boost::shared_ptr, bool) (session.cc:2174) ==29797== by 0x6167D99: trace_terminal(boost::shared_ptr, boost::shared_ptr, bool) (session.cc:2174) ==29797== by 0x6167D99: trace_terminal(boost::shared_ptr, boost::shared_ptr, bool) (session.cc:2174) ==29797== by 0x616890D: ARDOUR::Session::resort_routes_using(boost::shared_ptr, std::allocator > > >) (session.cc:2289) --- libs/ardour/session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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. -- cgit v1.2.3