mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +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
b2f27beb34
commit
b8225c905b
@ -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