diff options
author | Thomas Haller <thaller@redhat.com> | 2019-04-19 11:51:42 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-04-20 08:56:27 +0200 |
commit | 70d8f5ddfebd960cc6fd481fa1db1c70f28e636e (patch) | |
tree | 7ec6b2344beb25b0c0fa86b091477a7b7effea6f /libnm-core/nm-keyfile.c | |
parent | 79ecdb589b9022e5ef5186c7e7c90062fe4bbb42 (diff) | |
download | NetworkManager-70d8f5ddfebd960cc6fd481fa1db1c70f28e636e.tar.gz |
libnm-core: avoid cloning attributes of NMTCQdisc/NMTCAction to convert to string
(cherry picked from commit 48316f987a55474fc6db53c0354961f79ae475cf)
Diffstat (limited to 'libnm-core/nm-keyfile.c')
-rw-r--r-- | libnm-core/nm-keyfile.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libnm-core/nm-keyfile.c b/libnm-core/nm-keyfile.c index 6fb0099e85..bf8d219310 100644 --- a/libnm-core/nm-keyfile.c +++ b/libnm-core/nm-keyfile.c @@ -1943,10 +1943,9 @@ write_ip_values (GKeyFile *file, if (is_route) { gs_free char *attributes = NULL; - GHashTable *hash; - hash = _nm_ip_route_get_attributes_direct (array->pdata[i]); - attributes = nm_utils_format_variant_attributes (hash, ',', '='); + attributes = nm_utils_format_variant_attributes (_nm_ip_route_get_attributes (array->pdata[i]), + ',', '='); if (attributes) { g_strlcat (key_name, "_options", sizeof (key_name)); nm_keyfile_plugin_kf_set_string (file, setting_name, key_name, attributes); |