diff --git a/src/libostree/ostree-sysroot.c b/src/libostree/ostree-sysroot.c index 40c19ac458..a5824bbde3 100644 --- a/src/libostree/ostree-sysroot.c +++ b/src/libostree/ostree-sysroot.c @@ -1862,7 +1862,7 @@ ostree_sysroot_deployment_set_pinned (OstreeSysroot *self, return TRUE; g_autoptr(OstreeDeployment) deployment_clone = ostree_deployment_clone (deployment); - GKeyFile *origin_clone = ostree_deployment_get_origin (deployment); + GKeyFile *origin_clone = ostree_deployment_get_origin (deployment_clone); if (is_pinned) g_key_file_set_boolean (origin_clone, OSTREE_ORIGIN_TRANSIENT_GROUP, "pinned", TRUE);