From: Jan Kiszka <[email protected]>
Found by coverity: If bgenv_open_latest() fails, env_new was still
uninitialized.
Fixes: 1a38da3fbab3 ("Establish proper lifecycle management for bgenv API")
Signed-off-by: Jan Kiszka <[email protected]>
---
tools/bg_setenv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/bg_setenv.c b/tools/bg_setenv.c
index 24b4067..05fb355 100644
--- a/tools/bg_setenv.c
+++ b/tools/bg_setenv.c
@@ -622,7 +622,7 @@ int main(int argc, char **argv)
return 0;
}
- BGENV *env_new;
+ BGENV *env_new = NULL;
BGENV *env_current;
if (auto_update) {
--
2.26.2
--
You received this message because you are subscribed to the Google Groups "EFI
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/efibootguard-dev/ceb6e987-046c-a7b1-dc68-c76fcc93e441%40siemens.com.