Unionfs: initialize path_save variable
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 16 Feb 2008 02:45:34 +0000 (21:45 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 16 Feb 2008 02:45:34 +0000 (21:45 -0500)
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 02843a2caa5409cf1de0ad1c965975f1633957ab..5b025f07ea350d017fa764ec0ac16c88db49ace1 100644 (file)
@@ -239,7 +239,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);