From: Jonathan Lebon Date: Sat, 27 May 2023 14:27:55 +0000 (-0400) Subject: lib/deploy: Initialize var to pacify gcc static analysis X-Git-Tag: archive/raspbian/2023.7-3+rpi1~1^2~9^2~1^2~33^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=632ffa430205473e6727e3402016ad8077164dea;p=ostree.git lib/deploy: Initialize var to pacify gcc static analysis Classic case of analysis getting confused by variables initialized by a function. --- diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c index b87866ff..610fde5e 100644 --- a/src/libostree/ostree-sysroot-deploy.c +++ b/src/libostree/ostree-sysroot-deploy.c @@ -2534,7 +2534,7 @@ auto_early_prune_old_deployments (OstreeSysroot *self, GPtrArray *new_deployment continue; } - guint64 bootdir_size; + guint64 bootdir_size = 0; if (!get_kernel_layout_size (self, deployment, &bootdir_size, cancellable, error)) return FALSE;