diff options
author | Thomas Haller <thaller@redhat.com> | 2017-11-15 16:06:43 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-11-16 11:49:52 +0100 |
commit | a6be2f4aa9070e7f423b7c9992dbae51f092071e (patch) | |
tree | 8e744859bc7dc51e78c586f9a290992149833a32 /libnm/nm-object.c | |
parent | 93adadbdcbbccfeafb8523b129f103bb5b23f7d5 (diff) | |
download | NetworkManager-a6be2f4aa9070e7f423b7c9992dbae51f092071e.tar.gz |
all: use nm_str_hash() instead of g_str_hash()
We also do this for libnm and libnm-core, where it causes visible changes
in behavior. But if somebody would rely on the hashing implementation
for hash tables, it would be seriously flawed.
Diffstat (limited to 'libnm/nm-object.c')
-rw-r--r-- | libnm/nm-object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm/nm-object.c b/libnm/nm-object.c index c344a08dca..8297259d40 100644 --- a/libnm/nm-object.c +++ b/libnm/nm-object.c @@ -955,7 +955,7 @@ _nm_object_register_properties (NMObject *object, G_CALLBACK (properties_changed), object); g_ptr_array_add (priv->proxies, proxy); - instance = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); + instance = g_hash_table_new_full (nm_str_hash, g_str_equal, g_free, g_free); priv->property_tables = g_slist_prepend (priv->property_tables, instance); for (tmp = (NMPropertiesInfo *) info; tmp->name; tmp++) { |