diff --git a/fs/mmap/fs_mmap.c b/fs/mmap/fs_mmap.c index 9f08cc2d32..e1e2fe440b 100644 --- a/fs/mmap/fs_mmap.c +++ b/fs/mmap/fs_mmap.c @@ -256,7 +256,7 @@ FAR void *mmap(FAR void *start, size_t length, int prot, int flags, int fd, off_t offset) { FAR struct file *filep = NULL; - FAR void *mapped; + FAR void *mapped = NULL; int ret; if (fd != -1 && fs_getfilep(fd, &filep) < 0)