Skip to content

Commit fd61084

Browse files
de-nordicnashif
authored andcommitted
native_posix: fuse: 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 512a6f8 commit fd61084

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

subsys/fs/fuse_fs_access.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,12 @@ static void fuse_fs_access_init(void)
468468
{
469469
int err;
470470
struct stat st;
471+
size_t i = 0;
472+
473+
while (i < ARRAY_SIZE(files)) {
474+
fs_file_t_init(&files[i]);
475+
++i;
476+
}
471477

472478
if (fuse_mountpoint == NULL) {
473479
fuse_mountpoint = default_fuse_mountpoint;

0 commit comments

Comments
 (0)