mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-06 01:16:17 +01:00
gdbusconnection: Ensure out_serial return value is always set
There were some error paths where it wasn’t set, returning an uninitialised value to the caller. Spotted by scan-build. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #1767
This commit is contained in:
parent
abdff22528
commit
e2c3581e37
@ -1897,6 +1897,7 @@ g_dbus_connection_send_message_with_reply_unlocked (GDBusConnection *connect
|
||||
|
||||
if (out_serial == NULL)
|
||||
out_serial = &serial;
|
||||
*out_serial = 0;
|
||||
|
||||
if (timeout_msec == -1)
|
||||
timeout_msec = 25 * 1000;
|
||||
|
Loading…
Reference in New Issue
Block a user