mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
fs_fcntl: fix the ret value not check error
add ret value check on file_seek function to compat with misra rule Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
+1
-1
@@ -159,7 +159,7 @@ static int file_vfcntl(FAR struct file *filep, int cmd, va_list ap)
|
|||||||
|
|
||||||
if ((filep->f_oflags & O_APPEND) != 0)
|
if ((filep->f_oflags & O_APPEND) != 0)
|
||||||
{
|
{
|
||||||
file_seek(filep, 0, SEEK_END);
|
ret = file_seek(filep, 0, SEEK_END);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user