mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-01 00:42:16 +01:00 
			
		
		
		
	gsettingsschema: Fix a compiler warning
g_build_filename() returns a gchar*, but it was stored in a const gchar* and then g_free()d, which is wrong and led to a warning about the const qualifier being cast away.
This commit is contained in:
		| @@ -324,7 +324,7 @@ try_prepend_dir (const gchar *directory) | ||||
| static void | ||||
| try_prepend_data_dir (const gchar *directory) | ||||
| { | ||||
|   const gchar *dirname = g_build_filename (directory, "glib-2.0", "schemas", NULL); | ||||
|   gchar *dirname = g_build_filename (directory, "glib-2.0", "schemas", NULL); | ||||
|   try_prepend_dir (dirname); | ||||
|   g_free (dirname); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user