diff --git a/libcolord/cd-profile.c b/libcolord/cd-profile.c index 03decf8..95efc46 100644 --- a/libcolord/cd-profile.c +++ b/libcolord/cd-profile.c @@ -440,8 +440,7 @@ cd_profile_set_metadata_from_variant (CdProfile *profile, GVariant *variant) g_hash_table_remove_all (profile->priv->metadata); /* insert the new metadata */ - g_variant_get (variant, "a{ss}", - &iter); + g_variant_iter_init (&iter, variant); while (g_variant_iter_loop (iter, "{ss}", &prop_key, &prop_value)) { g_hash_table_insert (profile->priv->metadata,