GIT: unionfs2-2.6.27.y: Unionfs: initialize namelist variable in rename

Erez Zadok ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:40 EDT 2010


commit ea835847e01c3a3518c8effdb544cdc1aecd7ffd
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date:   Sun Dec 23 16:36:29 2007 -0500

    Unionfs: initialize namelist variable in rename
    
    Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>

diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c
index 1019d47..9306a2b 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)


More information about the unionfs-cvs mailing list