daemon: fix use of uninitialized vars

This commit is contained in:
Nedko Arnaudov 2010-04-04 21:51:47 +03:00
parent 9f6946c97f
commit e498a65b6f
1 changed files with 3 additions and 3 deletions

View File

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