mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 18:40:03 +01:00
Merge branch 'dm' into 'master'
gfileinfo: Add missing preconditions to g_file_info_get_attribute_data() See merge request GNOME/glib!1810
This commit is contained in:
commit
2e99579268
@ -734,6 +734,9 @@ g_file_info_get_attribute_data (GFileInfo *info,
|
||||
{
|
||||
GFileAttributeValue *value;
|
||||
|
||||
g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
|
||||
g_return_val_if_fail (attribute != NULL && *attribute != '\0', FALSE);
|
||||
|
||||
value = g_file_info_find_value_by_name (info, attribute);
|
||||
if (value == NULL)
|
||||
return FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user