From 97dffedf6204d87cac0d560aaec9eca3f3f7263a Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 10 Jan 2008 07:06:35 -0500 Subject: [PATCH] Unionfs: initialize namelist variable in rename Signed-off-by: Erez Zadok --- fs/unionfs/rename.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c index 00a71b4a4e..8a0a269fd0 100644 --- a/fs/unionfs/rename.c +++ b/fs/unionfs/rename.c @@ -403,7 +403,7 @@ int unionfs_rename(struct inode *old_dir, struct dentry *old_dentry, goto out; } if (S_ISDIR(new_dentry->d_inode->i_mode)) { - struct unionfs_dir_state *namelist; + struct unionfs_dir_state *namelist = NULL; /* check if this unionfs directory is empty or not */ err = check_empty(new_dentry, &namelist); if (err) -- 2.43.0