From 3bddace4f8e9a58f65abbc4afc06484848c1074c Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Wed, 12 Jul 2006 08:58:18 +0000 Subject: Don't skip before data has been read in. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10201 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/tagcache.c b/apps/tagcache.c index 4615cfd55b..f4309a1294 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()) { -- cgit v1.2.3