From 7031e1249512474af94b4765a634b8dcfa9a87d7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 26 Jun 2012 17:58:20 +0000 Subject: [PATCH] Fix uninitialised variable. git-svn-id: svn://localhost/ardour2/branches/3.0@12944 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/route.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index af30a112db..62bb2d0933 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -297,7 +297,7 @@ Route::set_order_key (RouteSortOrderKey key, int32_t n) * monitor because they are considered "external" to * the ordering of other routes. */ - + if ((!is_master() && !is_monitor()) || x->first != MixerSort) { if (x->second != n) { x->second = n; @@ -2130,7 +2130,7 @@ Route::set_state (const XMLNode& node, int version) } else if (keyname == "editor") { sk = EditorSort; } else { - RouteSortOrderKey sk = (RouteSortOrderKey) string_2_enum (remaining.substr (0, equal), sk); + sk = (RouteSortOrderKey) string_2_enum (remaining.substr (0, equal), sk); } set_order_key (sk, n);