daemon: fix use of uninitialized vars
This commit is contained in:
parent
9f6946c97f
commit
e498a65b6f
|
@ -693,6 +693,9 @@ static bool ports_disconnect_request(void * context, ladish_graph_handle graph_h
|
|||
return false;
|
||||
}
|
||||
|
||||
port1_id = ladish_port_get_jack_id(port1);
|
||||
port2_id = ladish_port_get_jack_id(port2);
|
||||
|
||||
if (port1_id == 0 || port2_id == 0)
|
||||
{
|
||||
/* TODO */
|
||||
|
@ -700,9 +703,6 @@ static bool ports_disconnect_request(void * context, ladish_graph_handle graph_h
|
|||
return false;
|
||||
}
|
||||
|
||||
port1_id = ladish_port_get_jack_id(port1);
|
||||
port2_id = ladish_port_get_jack_id(port2);
|
||||
|
||||
graph_proxy_disconnect_ports(virtualizer_ptr->jack_graph_proxy, port1_id, port2_id);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue