summaryrefslogtreecommitdiffstats
path: root/apps/tagcache.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-08-14 15:35:23 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-08-14 15:35:23 +0000
commit0c5ec36c7afd327a718a5847d631c28fd7c264b0 (patch)
treef2b6807a8f27f6ae30fd0d81c21f1d94dfb93fc9 /apps/tagcache.c
parent979dd7ad0f9bb133787f13e03df14750adf86c73 (diff)
downloadrockbox-0c5ec36c7afd327a718a5847d631c28fd7c264b0.tar.gz
rockbox-0c5ec36c7afd327a718a5847d631c28fd7c264b0.zip
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
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 08d6894e57..179218ab1f 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -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