fs/mmap: Fix build warning with [-Wmaybe-uninitialized].

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
cuiziwei 2024-08-19 12:38:55 +08:00 committed by Xiang Xiao
parent 6071102c90
commit 17a06ce2cd

View File

@ -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;