Unionfs: initialize path_save variable
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 16 Feb 2008 02:17:48 +0000 (21:17 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 03:44:50 +0000 (23:44 -0400)
This is not strictly necessary, but it helps quiet a gcc-4.2 warning (a good
optimizer may optimize this initialization away).

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
fs/unionfs/inode.c

index 2eccd189bbe33591e197e6482b87f5225af6d5d0..be05976d370cdd61570ca91f4df8071872621333 100644 (file)
@@ -246,7 +246,7 @@ static struct dentry *unionfs_lookup(struct inode *parent,
                                     struct dentry *dentry,
                                     struct nameidata *nd)
 {
-       struct path path_save;
+       struct path path_save = {NULL, NULL};
        struct dentry *ret;
 
        unionfs_read_lock(dentry->d_sb, UNIONFS_SMUTEX_CHILD);