diff options
author | Colin Walters <walters@verbum.org> | 2012-05-05 11:21:45 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-05-05 11:45:19 -0400 |
commit | 38dd1790179bcb748e0263ffec60d76234bd23d5 (patch) | |
tree | a933fd35a1c9a305fdd8ea18eff8cc7005f55b87 /src/ostree/ot-builtin-config.c | |
parent | 471c04605e084998ee43a9c25f4a2a885029a7fd (diff) | |
download | ostree-38dd1790179bcb748e0263ffec60d76234bd23d5.tar.gz |
core: Compile again on GLib 2.28
Diffstat (limited to 'src/ostree/ot-builtin-config.c')
-rw-r--r-- | src/ostree/ot-builtin-config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ostree/ot-builtin-config.c b/src/ostree/ot-builtin-config.c index 8ad6a17c..c8964098 100644 --- a/src/ostree/ot-builtin-config.c +++ b/src/ostree/ot-builtin-config.c @@ -106,6 +106,7 @@ ostree_builtin_config (int argc, char **argv, GFile *repo_path, GError **error) } else if (!strcmp (op, "set")) { + GKeyFile *readonly_config = NULL; ot_lfree char *value = NULL; if (argc < 3) { @@ -119,9 +120,8 @@ ostree_builtin_config (int argc, char **argv, GFile *repo_path, GError **error) if (!split_key_string (section_key, §ion, &key, error)) goto out; - config = g_key_file_ref (ostree_repo_get_config (repo)); - - value = g_key_file_get_string (config, section, key, error); + readonly_config = ostree_repo_get_config (repo); + value = g_key_file_get_string (readonly_config, section, key, error); if (value == NULL) goto out; |