From 43be59675b8a5f9f55953884dd4839fee1d11714 Mon Sep 17 00:00:00 2001 From: Christophe Grenier <grenier@cgsecurity.org> Date: Sun, 3 Apr 2011 17:50:47 +0200 Subject: [PATCH] Minor optimisation in NTFS undelete --- src/ntfs_udl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntfs_udl.c b/src/ntfs_udl.c index 9a9c76e2..08267cee 100644 --- a/src/ntfs_udl.c +++ b/src/ntfs_udl.c @@ -306,7 +306,7 @@ static void get_parent_name(struct filename* name, ntfs_volume* vol) else { char *npn; - if(strcmp(parent_name,".")==0 && inode_num==5) + if(inode_num==5 && strcmp(parent_name,".")==0) { /* root directory */ npn=(char *)MALLOC(strlen(name->parent_name)+2);