From 9b2ecca3dfde94caed55689d41ff4061eab0f6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Mon, 10 Jan 2011 11:16:39 +0100 Subject: [PATCH] Do not record inode open when failed (debug only) --- libntfs-3g/inode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libntfs-3g/inode.c b/libntfs-3g/inode.c index 6f3fa060..0b60203b 100644 --- a/libntfs-3g/inode.c +++ b/libntfs-3g/inode.c @@ -481,6 +481,9 @@ ntfs_inode *ntfs_inode_open(ntfs_volume *vol, const MFT_REF mref) } else { ni = ntfs_inode_real_open(vol, mref); } + if (!ni) { + debug_double_inode(item.inum, 0); + } #else ni = ntfs_inode_real_open(vol, mref); #endif