From: Erez Zadok Date: Tue, 25 Dec 2007 22:01:40 +0000 (-0500) Subject: Unionfs: initialize namelist variable in rename X-Git-Tag: unionfs-2.2~5 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=489e8641a6a4481f8ec1486ea127d81a9dde8c11;p=unionfs-2.6.21.y.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 97b441987dd..bc71e8ef024 100644 --- a/fs/unionfs/rename.c +++ b/fs/unionfs/rename.c @@ -457,7 +457,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)