mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
arch/sim/src/sim/up_hostfs.c: Fix warning: 'mapflags' may be used uninitialized in this function.
This commit is contained in:
@@ -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 host_open(const char *pathname, int flags, int mode)
|
||||||
{
|
{
|
||||||
int mapflags;
|
int mapflags = 0;
|
||||||
|
|
||||||
/* Perform flag mapping */
|
/* Perform flag mapping */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user