summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-07-12 08:58:18 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-07-12 08:58:18 +0000
commit3bddace4f8e9a58f65abbc4afc06484848c1074c (patch)
tree2682999bf369e0b4f30ad8d89fe27c3ad8b4fadf
parent4e19e6d20a83009dea624a221be5d4e73bbdb431 (diff)
downloadrockbox-3bddace4f8e9a58f65abbc4afc06484848c1074c.zip
rockbox-3bddace4f8e9a58f65abbc4afc06484848c1074c.tar.gz
rockbox-3bddace4f8e9a58f65abbc4afc06484848c1074c.tar.bz2
rockbox-3bddace4f8e9a58f65abbc4afc06484848c1074c.tar.xz
Don't skip before data has been read in.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10201 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tagcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 4615cfd..f4309a1 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -2329,10 +2329,6 @@ static bool load_tagcache(void)
// idx = &hdr->indices[hdr->entry_count[i]];
idx = &hdr->indices[fe->idx_id];
- /* Check if the entry has already been removed */
- if (idx->flag & FLAG_DELETED)
- continue;
-
if (fe->tag_length >= (long)sizeof(buf)-1)
{
read(fd, buf, 10);
@@ -2351,6 +2347,10 @@ static bool load_tagcache(void)
return false;
}
+ /* Check if the entry has already been removed */
+ if (idx->flag & FLAG_DELETED)
+ continue;
+
# ifdef HAVE_DIRCACHE
if (dircache_is_enabled())
{