mirror of
https://github.com/apache/nuttx.git
synced 2026-09-28 15:54:57 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user