[Ocfs2-commits] mfasheh commits r1576 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Oct 14 13:33:57 CDT 2004


Author: mfasheh
Date: 2004-10-14 13:33:55 -0500 (Thu, 14 Oct 2004)
New Revision: 1576

Modified:
   trunk/src/namei.c
Log:
* initialize the orphan name pointer in unlink and rename.



Modified: trunk/src/namei.c
===================================================================
--- trunk/src/namei.c	2004-10-14 16:40:39 UTC (rev 1575)
+++ trunk/src/namei.c	2004-10-14 18:33:55 UTC (rev 1576)
@@ -762,7 +762,7 @@
 	ocfs_journal_handle *handle = NULL;
 	struct ocfs2_dir_entry *dirent = NULL;
 	struct buffer_head *dirent_bh = NULL;
-	char *orphan_name;
+	char *orphan_name = NULL;
 	struct buffer_head *orphan_entry_bh = NULL;
 
 	LOG_SET_CONTEXT(UNLINK);
@@ -1040,7 +1040,7 @@
 	struct inode *old_inode = old_dentry->d_inode;
 	struct inode *new_inode = new_dentry->d_inode;
 	ocfs2_dinode *newfe = NULL;
-	char *orphan_name;
+	char *orphan_name = NULL;
 	struct buffer_head *orphan_entry_bh = NULL;
 	struct buffer_head *newfe_bh = NULL;
 	struct buffer_head *insert_entry_bh = NULL;



More information about the Ocfs2-commits mailing list