arch/sim/src/sim/up_hostfs.c: Fix warning: 'mapflags' may be used uninitialized in this function.

This commit is contained in:
Xiang Xiao 2019-11-11 09:01:51 -06:00 committed by Gregory Nutt
parent 5a3d9c7570
commit 48de68c474

View File

@ -115,7 +115,7 @@ static void host_stat_convert(struct stat *hostbuf, struct nuttx_stat_s *buf)
int host_open(const char *pathname, int flags, int mode)
{
int mapflags;
int mapflags = 0;
/* Perform flag mapping */