mirror of
https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
synced 2024-11-21 16:30:41 -05:00
gvc-mixer-control: Fix uninitialized variable usage
This commit is contained in:
parent
f3f6812eb9
commit
3af25601db
@ -2107,12 +2107,12 @@ sink_info_cb (pa_context *c,
|
|||||||
if (i->card != data->headset_card)
|
if (i->card != data->headset_card)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
s = data->port_name_to_set;
|
||||||
|
|
||||||
if (i->active_port &&
|
if (i->active_port &&
|
||||||
strcmp (i->active_port->name, s) == 0)
|
strcmp (i->active_port->name, s) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
s = data->port_name_to_set;
|
|
||||||
|
|
||||||
for (j = 0; j < i->n_ports; j++)
|
for (j = 0; j < i->n_ports; j++)
|
||||||
if (strcmp (i->ports[j]->name, s) == 0)
|
if (strcmp (i->ports[j]->name, s) == 0)
|
||||||
break;
|
break;
|
||||||
@ -2144,11 +2144,11 @@ source_info_cb (pa_context *c,
|
|||||||
if (i->card != data->headset_card)
|
if (i->card != data->headset_card)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
s = data->port_name_to_set;
|
||||||
|
|
||||||
if (i->active_port && strcmp (i->active_port->name, s) == 0)
|
if (i->active_port && strcmp (i->active_port->name, s) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
s = data->port_name_to_set;
|
|
||||||
|
|
||||||
for (j = 0; j < i->n_ports; j++)
|
for (j = 0; j < i->n_ports; j++)
|
||||||
if (strcmp (i->ports[j]->name, s) == 0)
|
if (strcmp (i->ports[j]->name, s) == 0)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user