diff options
-rw-r--r-- | nuttx/fs/vfs/fs_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/vfs/fs_open.c b/nuttx/fs/vfs/fs_open.c index fd6562ac3..1fb0cb538 100644 --- a/nuttx/fs/vfs/fs_open.c +++ b/nuttx/fs/vfs/fs_open.c @@ -107,7 +107,7 @@ int open(const char *path, int oflags, ...) /* If the file is opened for creation, then get the mode bits */ - if (oflags & (O_WRONLY|O_CREAT) != 0) + if ((oflags & (O_WRONLY|O_CREAT)) != 0) { va_list ap; va_start(ap, oflags); |