From: Erez Zadok Date: Sun, 23 Dec 2007 21:36:29 +0000 (-0500) Subject: Unionfs: initialize namelist variable in rename X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=00f660428a7468deda7a15a4929d8f3623b4bcf3;p=unionfs-latest.git Unionfs: initialize namelist variable in rename Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c index 1019d474d0e2..9306a2b92b39 100644 --- a/fs/unionfs/rename.c +++ b/fs/unionfs/rename.c @@ -462,7 +462,7 @@ int unionfs_rename(struct inode *old_dir, struct dentry *old_dentry, } 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)