There is a return path with node not set

inode/fs_inoderemove.c: In function 'inode_unlink':
inode/fs_inoderemove.c:74:17: warning: 'node' may be used uninitialized in this function [-Wmaybe-uninitialized]
   FAR struct inode *node;
This commit is contained in:
David Sidrane 2017-02-07 21:41:02 +00:00
parent b758176963
commit d9044058b5
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@
FAR struct inode *inode_unlink(FAR const char *path)
{
struct inode_search_s desc;
FAR struct inode *node;
FAR struct inode *node = NULL;
int ret;
/* Verify parameters. Ignore null paths and relative paths */