summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-init.c
diff options
context:
space:
mode:
authorKrzesimir Nowak <krzesimir@kinvolk.io>2016-05-13 08:08:49 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2016-05-17 21:13:20 +0000
commitd5f61043351ff1c0bea650873ec2541e1ede1f0a (patch)
treef69177ab2797b6ef02b698e9be25e64db9692aa0 /src/ostree/ot-builtin-init.c
parent24e3ccb7807cee22ab43af49b32fd24457793cc2 (diff)
downloadostree-d5f61043351ff1c0bea650873ec2541e1ede1f0a.tar.gz
build: Allow ostree to use g_autoptr on its types internally
As an example, I g_autoptred one OstreeRepo in the "ostree init" command. Closes: #295 Approved by: cgwalters
Diffstat (limited to 'src/ostree/ot-builtin-init.c')
-rw-r--r--src/ostree/ot-builtin-init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-builtin-init.c b/src/ostree/ot-builtin-init.c
index 9e7c8a2b..a250b793 100644
--- a/src/ostree/ot-builtin-init.c
+++ b/src/ostree/ot-builtin-init.c
@@ -37,7 +37,7 @@ gboolean
ostree_builtin_init (int argc, char **argv, GCancellable *cancellable, GError **error)
{
GOptionContext *context = NULL;
- glnx_unref_object OstreeRepo *repo = NULL;
+ g_autoptr(OstreeRepo) repo = NULL;
gboolean ret = FALSE;
OstreeRepoMode mode;