28 lines
948 B
Diff
28 lines
948 B
Diff
|
From 632ffa430205473e6727e3402016ad8077164dea Mon Sep 17 00:00:00 2001
|
||
|
From: Jonathan Lebon <jonathan@jlebon.com>
|
||
|
Date: Sat, 27 May 2023 10:27:55 -0400
|
||
|
Subject: [PATCH 1/5] lib/deploy: Initialize var to pacify gcc static analysis
|
||
|
|
||
|
Classic case of analysis getting confused by variables initialized by
|
||
|
a function.
|
||
|
---
|
||
|
src/libostree/ostree-sysroot-deploy.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
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;
|
||
|
|
||
|
--
|
||
|
2.40.1
|
||
|
|