mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-07 04:00:30 +01:00
libnm-core: sort attribute names for nm_ip_route_get_attribute_names()
The function shall return the attribute names in a consistent order. Let's sort by name.
This commit is contained in:
parent
7cd04ce014
commit
6aed608011
1 changed files with 1 additions and 0 deletions
|
|
@ -1128,6 +1128,7 @@ nm_ip_route_get_attribute_names (NMIPRoute *route)
|
|||
while (g_hash_table_iter_next (&iter, (gpointer *) &key, NULL))
|
||||
g_ptr_array_add (names, g_strdup (key));
|
||||
}
|
||||
g_ptr_array_sort (names, nm_strcmp_p);
|
||||
g_ptr_array_add (names, NULL);
|
||||
|
||||
return (char **) g_ptr_array_free (names, FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue