colord/variant-iter.patch

15 lines
550 B
Diff
Raw Normal View History

2012-01-20 05:29:18 +00:00
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_init (&iter, variant);
while (g_variant_iter_loop (iter, "{ss}",
&prop_key, &prop_value)) {
g_hash_table_insert (profile->priv->metadata,