Minor optimisation in NTFS undelete

This commit is contained in:
Christophe Grenier 2011-04-03 17:50:47 +02:00
parent 44857c2c37
commit 43be59675b

View file

@ -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);