Whamcloud - gitweb
ext2fs: initialize handle to NULL in ext2fs_count_blks
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Thu, 4 Feb 2021 23:35:59 +0000 (15:35 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 9 Feb 2021 04:36:21 +0000 (23:36 -0500)
commit2fae964a0e3d68498a5accfd2fd0780352415660
tree3414df8937a0636bc1366772bcd094eee99d9c97
parentf15b1aaf8f1241ac55057ec61a0d399147fc644b
ext2fs: initialize handle to NULL in ext2fs_count_blks

Initialize the handle to NULL to ensure that in error cases,
ext2fs_free_mem can be called on it.

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/extent.c