mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 00:12:19 +01:00 
			
		
		
		
	Add some argument checks to filename conversion functions
This commit is contained in:
		| @@ -1469,6 +1469,8 @@ g_filename_to_utf8 (const gchar *opsysstring, | ||||
| { | ||||
|   const gchar *charset; | ||||
|  | ||||
|   g_return_val_if_fail (opsysstring != NULL, NULL); | ||||
|  | ||||
|   if (get_filename_charset (&charset)) | ||||
|     return strdup_len (opsysstring, len, bytes_read, bytes_written, error); | ||||
|   else | ||||
| @@ -1494,6 +1496,8 @@ g_filename_to_utf8 (const gchar *opsysstring, | ||||
| { | ||||
|   const gchar *charset; | ||||
|  | ||||
|   g_return_val_if_fail (opsysstring != NULL, NULL); | ||||
|  | ||||
|   if (g_get_charset (&charset)) | ||||
|     return strdup_len (opsysstring, len, bytes_read, bytes_written, error); | ||||
|   else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user