13
0

Initialize variable, fix branch condition

This commit is contained in:
Robin Gareus 2019-08-21 03:09:32 +02:00
parent e6c9bcfd07
commit c38c91ddbd
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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);