Fixed a problem when using filename tag as a search clause.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10571 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2006-08-14 15:35:23 +00:00
parent 979dd7ad0f
commit 0c5ec36c7a

View file

@ -678,7 +678,10 @@ static bool build_lookup_list(struct tagcache_search *tcs)
{
if (tcs->clause[j]->tag == tag_filename)
{
int oldtype = tcs->type;
tcs->type = tag_filename;
tagcache_retrieve(tcs, i, buf, sizeof buf);
tcs->type = oldtype;
str = buf;
}
else