mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Initialize variable, fix branch condition
This commit is contained in:
parent
e6c9bcfd07
commit
c38c91ddbd
1 changed files with 2 additions and 2 deletions
|
|
@ -690,11 +690,11 @@ OSCSelectObserver::group_sharing (RouteGroup *rgc)
|
||||||
_group_sharing[15] = 1;
|
_group_sharing[15] = 1;
|
||||||
boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (_strip);
|
boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (_strip);
|
||||||
string new_name = "none";
|
string new_name = "none";
|
||||||
RouteGroup *rg;
|
RouteGroup* rg = NULL;
|
||||||
if (rt) {
|
if (rt) {
|
||||||
rg = rt->route_group();
|
rg = rt->route_group();
|
||||||
}
|
}
|
||||||
if (rg && rt) {
|
if (rg) {
|
||||||
new_name = rg->name();
|
new_name = rg->name();
|
||||||
_osc.text_message (X_("/select/group"), new_name, addr);
|
_osc.text_message (X_("/select/group"), new_name, addr);
|
||||||
_osc.send_group_list (addr);
|
_osc.send_group_list (addr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue