From 0c5ec36c7afd327a718a5847d631c28fd7c264b0 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Mon, 14 Aug 2006 15:35:23 +0000 Subject: [PATCH] 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 --- apps/tagcache.c | 3 +++ 1 file changed, 3 insertions(+) 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