From b9b768687f96a6f86048eec0c4ca8d2aa72aed93 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 4 Nov 2014 11:35:56 -0500 Subject: [PATCH] e2fsck: fix compiler warnings Fix some gcc-4.8 warnings. Signed-off-by: Darrick J. Wong Signed-off-by: Theodore Ts'o --- e2fsck/pass5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.8.3.1