diff --git a/fs/vfs/fs_fcntl.c b/fs/vfs/fs_fcntl.c index 44bdcd6652..e2c9fe6376 100644 --- a/fs/vfs/fs_fcntl.c +++ b/fs/vfs/fs_fcntl.c @@ -159,7 +159,7 @@ static int file_vfcntl(FAR struct file *filep, int cmd, va_list ap) if ((filep->f_oflags & O_APPEND) != 0) { - file_seek(filep, 0, SEEK_END); + ret = file_seek(filep, 0, SEEK_END); } } }