From d9044058b5f5f3d9a020f9c80d6840831e5c7e7f Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Tue, 7 Feb 2017 21:41:02 +0000 Subject: [PATCH] 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; --- fs/inode/fs_inoderemove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/inode/fs_inoderemove.c b/fs/inode/fs_inoderemove.c index 7da8235964..968a0cfdd0 100644 --- a/fs/inode/fs_inoderemove.c +++ b/fs/inode/fs_inoderemove.c @@ -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 */