Skip to content

Commit ba3b1ba

Browse files
de-nordicnashif
authored andcommitted
posix: 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 6bb3706 commit ba3b1ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/posix/fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int open(const char *name, int flags, ...)
107107
return -1;
108108
}
109109

110-
(void)memset(&ptr->file, 0, sizeof(ptr->file));
110+
fs_file_t_init(&ptr->file);
111111

112112
rc = fs_open(&ptr->file, name, zmode);
113113

0 commit comments

Comments
 (0)