[Ocfs2-tools-devel] [PATCH 1/2] Ocfs2-tools: Fix a minor issue of func 'o2fsck_pass1c'.

Tristan Ye tristan.ye at oracle.com
Sun Aug 2 00:32:43 PDT 2009


Joel, as your patches series to solve multiply-claimed clusters get
pushed, I just add a separate patch here to have the return code of func
'o2fsck_pass1c' get initilized to avoid returning a unkown code since it
never be used.

Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
---
 fsck.ocfs2/pass1b.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fsck.ocfs2/pass1b.c b/fsck.ocfs2/pass1b.c
index a0bcd60..f03a325 100644
--- a/fsck.ocfs2/pass1b.c
+++ b/fsck.ocfs2/pass1b.c
@@ -921,7 +921,7 @@ static void walk_cwd(struct dir_scan_context *scan)
 
 static errcode_t o2fsck_pass1c(o2fsck_state *ost, struct dup_context *dct)
 {
-	errcode_t ret;
+	errcode_t ret = 0;
 	struct dir_scan_context scan = {
 		.ds_ost = ost,
 		.ds_dct = dct,
-- 
1.5.5




More information about the Ocfs2-tools-devel mailing list