This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 17a06ce2cd fs/mmap: Fix build warning with [-Wmaybe-uninitialized]. 17a06ce2cd is described below commit 17a06ce2cd30fdb11b703885040b206f479c4055 Author: cuiziwei <cuizi...@xiaomi.com> AuthorDate: Mon Aug 19 12:38:55 2024 +0800 fs/mmap: Fix build warning with [-Wmaybe-uninitialized]. Signed-off-by: cuiziwei <cuizi...@xiaomi.com> --- fs/mmap/fs_rammap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/mmap/fs_rammap.c b/fs/mmap/fs_rammap.c index fc3ec3b408..0f3c4f2017 100644 --- a/fs/mmap/fs_rammap.c +++ b/fs/mmap/fs_rammap.c @@ -52,7 +52,7 @@ static int unmap_rammap(FAR struct task_group_s *group, FAR void *start, size_t length) { - FAR void *newaddr; + FAR void *newaddr = NULL; off_t offset; bool kernel = entry->priv.i; int ret = OK;