ceph: silence uninitialized variable warning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, March 19, 2010 - 9:59 am

Gitweb:     http://git.kernel.org/linus/6ca874e92d5e50beb8e351dfd8121947bafc79ec
Commit:     6ca874e92d5e50beb8e351dfd8121947bafc79ec
Parent:     7b813c46021e8f4909772a5bbfb5212bd140764c
Author:     Sage Weil <sage@newdream.net>
AuthorDate: Mon Oct 26 22:06:22 2009 -0700
Committer:  Sage Weil <sage@newdream.net>
CommitDate: Mon Oct 26 22:07:59 2009 -0700

    ceph: silence uninitialized variable warning
    
    Signed-off-by: Sage Weil <sage@newdream.net>
---
 fs/ceph/super.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index deb51bd..924e6ca 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -808,7 +808,7 @@ static int ceph_get_sb(struct file_system_type *fs_type,
 	struct ceph_client *client;
 	int err;
 	int (*compare_super)(struct super_block *, void *) = ceph_compare_super;
-	const char *path;
+	const char *path = 0;
 
 	dout("ceph_get_sb\n");
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ceph: silence uninitialized variable warning, Linux Kernel Mailing ..., (Fri Mar 19, 9:59 am)