From d5bfe08d07608264f4998198707042635ab0780b Mon Sep 17 00:00:00 2001
From: apriestman <apriestman@basistech.com>
Date: Wed, 28 Oct 2020 14:34:13 -0400
Subject: [PATCH] Removed wrong part of if statement

---
 tsk/fs/ext2fs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tsk/fs/ext2fs.c b/tsk/fs/ext2fs.c
index f804078d1..56e9b1c66 100755
--- a/tsk/fs/ext2fs.c
+++ b/tsk/fs/ext2fs.c
@@ -1595,7 +1595,7 @@ static uint8_t
 ext2fs_handle_implicit_sparse_data_run(TSK_FS_INFO * fs_info, TSK_FS_ATTR * fs_attr) {
     TSK_FS_FILE *fs_file = fs_attr->fs_file;
 
-    if (fs_attr == NULL) {
+    if (fs_file == NULL) {
         return 1;
     }
 
-- 
GitLab