mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
dbus-iface: Initialize "new_active" variable to NULL
Fixes warning: 'new_active' may be used uninitialized in this function, and could potentially cause erronous behaviour in case an invalid port name was specified. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
d5fec4ca7a
commit
3978bbb13a
1 changed files with 1 additions and 1 deletions
|
|
@ -727,7 +727,7 @@ static void handle_set_active_port(DBusConnection *conn, DBusMessage *msg, DBusM
|
|||
const char *new_active_path;
|
||||
pa_dbusiface_device_port *port;
|
||||
void *state;
|
||||
pa_dbusiface_device_port *new_active;
|
||||
pa_dbusiface_device_port *new_active = NULL;
|
||||
int r;
|
||||
|
||||
pa_assert(conn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue