Skip to content

Commit 2132923

Browse files
de-nordicnashif
authored andcommitted
tests: lib: gui: lvgl: Add fs_file_t type variable initializations
The commit adds initializations of fs_file_t variables in preparation for fs_open function change that will require fs_file_t object, passed to the function, to be initialized before first usage. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 4ac2d11 commit 2132923

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/lib/gui/lvgl/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ void setup_fs(void)
9191
return;
9292
}
9393

94+
fs_file_t_init(&img);
9495
ret = fs_open(&img, IMG_FILE_PATH, FS_O_CREATE | FS_O_WRITE);
9596
if (ret < 0) {
9697
TC_PRINT("Failed to open image file: %d\n", ret);

0 commit comments

Comments
 (0)