mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 16:32:18 +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:
		
				
					committed by
					
						 Philip Withnall
						Philip Withnall
					
				
			
			
				
	
			
			
			
						parent
						
							249330c388
						
					
				
				
					commit
					cc7ab04b33
				
			| @@ -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); | ||||
|   | ||||
| @@ -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 ()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user