mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
fs/vfs: Zero file struct field with memset
to avoid set fields to zero one by one Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
22d6f97843
commit
17f173d555
@@ -607,8 +607,8 @@ ssize_t nxffs_write(FAR struct file *filep, FAR const char *buffer,
|
||||
|
||||
/* Success.. return the number of bytes written */
|
||||
|
||||
ret = total;
|
||||
filep->f_pos = wrfile->datlen;
|
||||
ret = total;
|
||||
filep->f_pos = wrfile->datlen;
|
||||
|
||||
errout_with_lock:
|
||||
nxmutex_unlock(&volume->lock);
|
||||
|
||||
Reference in New Issue
Block a user