mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
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:
parent
249330c388
commit
cc7ab04b33
@ -337,7 +337,7 @@ mechanism_client_initiate (GDBusAuthMechanism *mechanism,
|
|||||||
m->priv->is_client = TRUE;
|
m->priv->is_client = TRUE;
|
||||||
m->priv->state = G_DBUS_AUTH_MECHANISM_STATE_ACCEPTED;
|
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);
|
credentials = _g_dbus_auth_mechanism_get_credentials (mechanism);
|
||||||
g_assert (credentials != NULL);
|
g_assert (credentials != NULL);
|
||||||
|
@ -1118,7 +1118,7 @@ mechanism_client_initiate (GDBusAuthMechanism *mechanism,
|
|||||||
m->priv->is_client = TRUE;
|
m->priv->is_client = TRUE;
|
||||||
m->priv->state = G_DBUS_AUTH_MECHANISM_STATE_WAITING_FOR_DATA;
|
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
|
#ifdef G_OS_UNIX
|
||||||
initial_response = g_strdup_printf ("%" G_GINT64_FORMAT, (gint64) getuid ());
|
initial_response = g_strdup_printf ("%" G_GINT64_FORMAT, (gint64) getuid ());
|
||||||
|
Loading…
Reference in New Issue
Block a user