diff mbox series

[v2,4/6] test: spl: Zero spl_image_info

Message ID 20260902-riscv-full-fit-support-v2-4-493e904a129e@maquefel.me
State Under Review
Delegated to: Tim Ouyang
Headers show
Series RISC-V SPL: fix OpenSBI FULL FIT loading | expand

Commit Message

Nikita Shubin Sept. 2, 2026, 6:31 a.m. UTC
Make sure spl_image_info is inited before passing it.

Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
---
 test/image/spl_load_os.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/test/image/spl_load_os.c b/test/image/spl_load_os.c
index ba9d7979a09..7cf7ea6bc34 100644
--- a/test/image/spl_load_os.c
+++ b/test/image/spl_load_os.c
@@ -12,7 +12,7 @@ 
 
 static int spl_test_load(struct unit_test_state *uts)
 {
-	struct spl_image_info image;
+	struct spl_image_info image = { };
 	char fname[256];
 
 	ut_assertok(sandbox_spl_load_fit(fname, sizeof(fname), &image));
@@ -23,7 +23,7 @@  SPL_TEST(spl_test_load, 0);
 
 static int spl_test_load_fit_full(struct unit_test_state *uts)
 {
-	struct spl_image_info image;
+	struct spl_image_info image = { };
 	char fname[256];
 
 	ut_assertok(sandbox_spl_load_fit_full(fname, sizeof(fname), &image));