summaryrefslogtreecommitdiff
path: root/nuttx/fs/aio/aio_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/aio/aio_write.c')
-rw-r--r--nuttx/fs/aio/aio_write.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/fs/aio/aio_write.c b/nuttx/fs/aio/aio_write.c
index f05e357c3..6b8903895 100644
--- a/nuttx/fs/aio/aio_write.c
+++ b/nuttx/fs/aio/aio_write.c
@@ -113,8 +113,10 @@ static void aio_write_worker(FAR void *arg)
#ifdef CONFIG_PRIORITY_INHERITANCE
uint8_t prio;
#endif
- ssize_t nwritten;
+ ssize_t nwritten = 0;
+#ifdef AIO_HAVE_FILEP
int oflags;
+#endif
/* Get the information from the container, decant the AIO control block,
* and free the container before starting any I/O. That will minimize