mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-01 13:42:10 +01:00
fileinfo: Store namespace::* as 0th attribute
This way, we can get_attribute() namespaces. This will be important in the next commit.
This commit is contained in:
parent
128e0cb787
commit
86d29e4e73
@ -132,7 +132,8 @@ _lookup_namespace (const char *namespace)
|
||||
ns_info->id = ++namespace_id_counter;
|
||||
g_hash_table_insert (ns_hash, g_strdup (namespace), ns_info);
|
||||
attributes = g_realloc (attributes, (ns_info->id + 1) * sizeof (char **));
|
||||
attributes[ns_info->id] = NULL;
|
||||
attributes[ns_info->id] = g_new (char *, 1);
|
||||
attributes[ns_info->id][0] = g_strconcat (namespace, "::*", NULL);
|
||||
}
|
||||
return ns_info;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user