]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsck: fix compiler warnings
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 4 Nov 2014 16:35:56 +0000 (11:35 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Nov 2014 16:35:56 +0000 (11:35 -0500)
Fix some gcc-4.8 warnings.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass5.c

index 8d6032bbfa9b83505db63ad73f333f6a2b28eced..64fb7fea777f773da7155ec2ddda137bbf1bdb53 100644 (file)
@@ -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;