Efreet_Mime: bugfix for magic matching.

Efreet_Mime did not match last set of magics for given mime-type due to
missing check after the loop. This bug was partially masked by the
problem fixed in my previous patch.

By: Mikhail Gusarov


SVN revision: 41305
This commit is contained in:
Gustavo Sverzut Barbieri 2009-07-11 14:26:53 +00:00
parent 9aef9f5eca
commit 4faa46cab3
1 changed files with 6 additions and 0 deletions

View File

@ -1272,6 +1272,12 @@ efreet_mime_magic_check_priority(const char *file,
}
}
}
if (match)
{
fclose(f);
return last_mime;
}
}
fclose(f);