From: Jonathan Lebon Date: Mon, 17 Aug 2020 13:48:11 +0000 (-0400) Subject: lib/deploy: Simplify deployment creation X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~9^2~1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=74bd1362861ed66200094b469ef40d7a1f818c9f;p=ostree.git lib/deploy: Simplify deployment creation Minor cleanup; we were declaring a superfluous variable. --- diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c index 0179873b..4b678890 100644 --- a/src/libostree/ostree-sysroot-deploy.c +++ b/src/libostree/ostree-sysroot-deploy.c @@ -2699,10 +2699,8 @@ sysroot_initialize_deployment (OstreeSysroot *self, cancellable, error)) return FALSE; - g_autofree char *new_bootcsum = NULL; g_autoptr(OstreeDeployment) new_deployment = - ostree_deployment_new (0, osname, revision, new_deployserial, - new_bootcsum, -1); + ostree_deployment_new (0, osname, revision, new_deployserial, NULL, -1); ostree_deployment_set_origin (new_deployment, origin); /* Check out the userspace tree onto the filesystem */