mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 18:16:34 +02:00
Fix up some harmless FALSE <> NULL confusions
Reported in bug 643134.
This commit is contained in:
@@ -1992,7 +1992,7 @@ g_dbus_connection_send_message_with_reply_sync (GDBusConnection *connection,
|
|||||||
|
|
||||||
g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL);
|
g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL);
|
||||||
g_return_val_if_fail (G_IS_DBUS_MESSAGE (message), NULL);
|
g_return_val_if_fail (G_IS_DBUS_MESSAGE (message), NULL);
|
||||||
g_return_val_if_fail ((flags & G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL) || !g_dbus_message_get_locked (message), FALSE);
|
g_return_val_if_fail ((flags & G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL) || !g_dbus_message_get_locked (message), NULL);
|
||||||
g_return_val_if_fail (timeout_msec >= 0 || timeout_msec == -1, NULL);
|
g_return_val_if_fail (timeout_msec >= 0 || timeout_msec == -1, NULL);
|
||||||
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
||||||
|
|
||||||
|
@@ -3197,8 +3197,8 @@ g_dbus_message_lock (GDBusMessage *message)
|
|||||||
* This operation can fail if e.g. @message contains file descriptors
|
* This operation can fail if e.g. @message contains file descriptors
|
||||||
* and the per-process or system-wide open files limit is reached.
|
* and the per-process or system-wide open files limit is reached.
|
||||||
*
|
*
|
||||||
* Returns: (transfer full): A new #GDBusMessage or %NULL if @error is set. Free with
|
* Returns: (transfer full): A new #GDBusMessage or %NULL if @error is set.
|
||||||
* g_object_unref().
|
* Free with g_object_unref().
|
||||||
*
|
*
|
||||||
* Since: 2.26
|
* Since: 2.26
|
||||||
*/
|
*/
|
||||||
@@ -3212,7 +3212,7 @@ g_dbus_message_copy (GDBusMessage *message,
|
|||||||
GVariant *header_value;
|
GVariant *header_value;
|
||||||
|
|
||||||
g_return_val_if_fail (G_IS_DBUS_MESSAGE (message), NULL);
|
g_return_val_if_fail (G_IS_DBUS_MESSAGE (message), NULL);
|
||||||
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
|
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
||||||
|
|
||||||
ret = g_dbus_message_new ();
|
ret = g_dbus_message_new ();
|
||||||
ret->type = message->type;
|
ret->type = message->type;
|
||||||
@@ -3255,4 +3255,3 @@ g_dbus_message_copy (GDBusMessage *message,
|
|||||||
out:
|
out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user