Fix NULL dereference.

git-svn-id: svn://localhost/ardour2/branches/3.0@6616 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2010-02-01 20:06:45 +00:00
parent d4789d9070
commit 18087e555d

View file

@ -3191,7 +3191,7 @@ Editor::set_route_group_mute (Route& route, bool yn)
{ {
RouteGroup *route_group = 0; RouteGroup *route_group = 0;
if ((route_group == route.route_group()) != 0) { if ((route_group = route.route_group()) != 0) {
route_group->apply (&Route::set_mute, yn, this); route_group->apply (&Route::set_mute, yn, this);
} else { } else {
route.set_mute (yn, this); route.set_mute (yn, this);