gdbus: do not initialize gsize variables with -1

Use 0 instead, since gsize is unsigned.

https://bugzilla.gnome.org/show_bug.cgi?id=794170
This commit is contained in:
Руслан Ижбулатов 2018-03-08 11:25:28 +00:00 committed by Philip Withnall
parent 249330c388
commit cc7ab04b33
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ mechanism_client_initiate (GDBusAuthMechanism *mechanism,
m->priv->is_client = TRUE;
m->priv->state = G_DBUS_AUTH_MECHANISM_STATE_ACCEPTED;
*out_initial_response_len = -1;
*out_initial_response_len = 0;
credentials = _g_dbus_auth_mechanism_get_credentials (mechanism);
g_assert (credentials != NULL);

View File

@ -1118,7 +1118,7 @@ mechanism_client_initiate (GDBusAuthMechanism *mechanism,
m->priv->is_client = TRUE;
m->priv->state = G_DBUS_AUTH_MECHANISM_STATE_WAITING_FOR_DATA;
*out_initial_response_len = -1;
*out_initial_response_len = 0;
#ifdef G_OS_UNIX
initial_response = g_strdup_printf ("%" G_GINT64_FORMAT, (gint64) getuid ());