Whamcloud - gitweb
Initialize buf to NULL to avoid crashing when called by fix_problem()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 24 Dec 2001 03:56:12 +0000 (22:56 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 24 Dec 2001 03:56:12 +0000 (22:56 -0500)
e2fsck/util.c

index e3a840c..227e41d 100644 (file)
@@ -323,7 +323,7 @@ blk_t get_backup_sb(e2fsck_t ctx, ext2_filsys fs, const char *name,
 {
        struct ext2_super_block *sb;
        io_channel              io = NULL;
-       void                    *buf;
+       void                    *buf = NULL;
        int                     blocksize;
        blk_t                   superblock, ret_sb = 8193;