summaryrefslogtreecommitdiff
path: root/apps
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 /apps
parent4e19e6d20a83009dea624a221be5d4e73bbdb431 (diff)
downloadrockbox-3bddace4f8e9a58f65abbc4afc06484848c1074c.tar.gz
rockbox-3bddace4f8e9a58f65abbc4afc06484848c1074c.zip
Don't skip before data has been read in.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10201 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tagcache.c8
1 files changed, 4 insertions, 4 deletions
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)
2329 // idx = &hdr->indices[hdr->entry_count[i]]; 2329 // idx = &hdr->indices[hdr->entry_count[i]];
2330 idx = &hdr->indices[fe->idx_id]; 2330 idx = &hdr->indices[fe->idx_id];
2331 2331
2332 /* Check if the entry has already been removed */
2333 if (idx->flag & FLAG_DELETED)
2334 continue;
2335
2336 if (fe->tag_length >= (long)sizeof(buf)-1) 2332 if (fe->tag_length >= (long)sizeof(buf)-1)
2337 { 2333 {
2338 read(fd, buf, 10); 2334 read(fd, buf, 10);
@@ -2351,6 +2347,10 @@ static bool load_tagcache(void)
2351 return false; 2347 return false;
2352 } 2348 }
2353 2349
2350 /* Check if the entry has already been removed */
2351 if (idx->flag & FLAG_DELETED)
2352 continue;
2353
2354# ifdef HAVE_DIRCACHE 2354# ifdef HAVE_DIRCACHE
2355 if (dircache_is_enabled()) 2355 if (dircache_is_enabled())
2356 { 2356 {