Make sure spl_image_info is inited before passing it.
Signed-off-by: Nikita Shubin <[email protected]>
---
test/image/spl_load_os.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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));
--
2.54.0