mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 16:26:17 +01:00
Merge branch 'wip/ernestask/gcc-9-null-directive-argument' into 'master'
gdbus: Avoid printing null strings See merge request GNOME/glib!626
This commit is contained in:
commit
2a9ddc6303
@ -1272,9 +1272,9 @@ _g_dbus_auth_run_server (GDBusAuth *auth,
|
|||||||
&line_length,
|
&line_length,
|
||||||
cancellable,
|
cancellable,
|
||||||
error);
|
error);
|
||||||
debug_print ("SERVER: WaitingForBegin, read '%s'", line);
|
|
||||||
if (line == NULL)
|
if (line == NULL)
|
||||||
goto out;
|
goto out;
|
||||||
|
debug_print ("SERVER: WaitingForBegin, read '%s'", line);
|
||||||
if (g_strcmp0 (line, "BEGIN") == 0)
|
if (g_strcmp0 (line, "BEGIN") == 0)
|
||||||
{
|
{
|
||||||
/* YAY, done! */
|
/* YAY, done! */
|
||||||
|
@ -2731,7 +2731,6 @@ g_dbus_message_to_blob (GDBusMessage *message,
|
|||||||
if (message->body != NULL)
|
if (message->body != NULL)
|
||||||
{
|
{
|
||||||
gchar *tupled_signature_str;
|
gchar *tupled_signature_str;
|
||||||
tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
|
|
||||||
if (signature == NULL)
|
if (signature == NULL)
|
||||||
{
|
{
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
@ -2739,10 +2738,10 @@ g_dbus_message_to_blob (GDBusMessage *message,
|
|||||||
G_IO_ERROR_INVALID_ARGUMENT,
|
G_IO_ERROR_INVALID_ARGUMENT,
|
||||||
_("Message body has signature “%s” but there is no signature header"),
|
_("Message body has signature “%s” but there is no signature header"),
|
||||||
signature_str);
|
signature_str);
|
||||||
g_free (tupled_signature_str);
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
else if (g_strcmp0 (tupled_signature_str, g_variant_get_type_string (message->body)) != 0)
|
tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
|
||||||
|
if (g_strcmp0 (tupled_signature_str, g_variant_get_type_string (message->body)) != 0)
|
||||||
{
|
{
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
G_IO_ERROR,
|
G_IO_ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user