mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
gfileinfo: Add missing preconditions to g_file_info_get_attribute_data()
This commit is contained in:
parent
4fb3b6aa37
commit
f49831ccb4
@ -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