From: Darrick J. Wong Date: Tue, 4 Nov 2014 16:35:56 +0000 (-0500) Subject: e2fsck: fix compiler warnings X-Git-Tag: v1.43-WIP-2015-05-18~147 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b9b768687f96a6f86048eec0c4ca8d2aa72aed93;p=tools%2Fe2fsprogs.git e2fsck: fix compiler warnings Fix some gcc-4.8 warnings. Signed-off-by: Darrick J. Wong Signed-off-by: Theodore Ts'o --- diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c index 8d6032b..64fb7fe 100644 --- a/e2fsck/pass5.c +++ b/e2fsck/pass5.c @@ -84,7 +84,7 @@ void e2fsck_pass5(e2fsck_t ctx) static void check_inode_bitmap_checksum(e2fsck_t ctx) { struct problem_context pctx; - char *buf; + char *buf = NULL; dgrp_t i; int nbytes; ext2_ino_t ino_itr; @@ -139,7 +139,7 @@ static void check_inode_bitmap_checksum(e2fsck_t ctx) static void check_block_bitmap_checksum(e2fsck_t ctx) { struct problem_context pctx; - char *buf; + char *buf = NULL; dgrp_t i; int nbytes; blk64_t blk_itr;