[ostree] core: Another GLib 2.30 build fix



commit 9dc6ddce0848cf04b76fc1c673c8fc1a0f6f425a
Author: Colin Walters <walters verbum org>
Date:   Mon Nov 14 15:31:53 2011 -0500

    core: Another GLib 2.30 build fix

 libostree/ostree-repo.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libostree/ostree-repo.c b/libostree/ostree-repo.c
index 0d34531..2bdb56d 100644
--- a/libostree/ostree-repo.c
+++ b/libostree/ostree-repo.c
@@ -442,8 +442,10 @@ ostree_repo_write_config (OstreeRepo *self,
   if (!g_file_set_contents (priv->config_path, data, len, error))
     goto out;
   
-  g_key_file_unref (priv->config);
-  priv->config = g_key_file_ref (new_config);
+  g_key_file_free (priv->config);
+  priv->config = g_key_file_new ();
+  if (!g_key_file_load_from_data (priv->config, data, len, 0, error))
+    goto out;
 
   ret = TRUE;
  out:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]