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 <dominik.ermel@nordicsemi.no>
This commit is contained in:
parent
6bb3706606
commit
ba3b1ba3d5
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ int open(const char *name, int flags, ...)
|
|||
return -1;
|
||||
}
|
||||
|
||||
(void)memset(&ptr->file, 0, sizeof(ptr->file));
|
||||
fs_file_t_init(&ptr->file);
|
||||
|
||||
rc = fs_open(&ptr->file, name, zmode);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue