Commit daadb8fb authored by Philip Withnall's avatar Philip Withnall Committed by Thomas Haller

libnm-util: Fix a minor type problem with GValue

The code was passing the gpointer alias of the GValue, rather than the
GValue* itself. This doesn’t matter normally, but broke an experimental
patch in GLib to remove a cast from G_VALUE_TYPE.

We’ve reverted the patch in GLib (see, but this should be
fixed in NetworkManager anyway.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <>
parent f7b5e48c
......@@ -470,7 +470,7 @@ value_dup (gpointer key, gpointer val, gpointer user_data)
GValue *dup_value;
dup_value = g_slice_new0 (GValue);
g_value_init (dup_value, G_VALUE_TYPE (val));
g_value_init (dup_value, G_VALUE_TYPE (value));
g_value_copy (value, dup_value);
g_hash_table_insert (table, g_strdup ((char *) key), dup_value);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment