summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 5abb32a109..75191d678e 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -1396,7 +1396,9 @@ static bool get_next(struct tagcache_search *tcs)
1396{ 1396{
1397 static char buf[TAG_MAXLEN+32]; 1397 static char buf[TAG_MAXLEN+32];
1398 struct tagfile_entry entry; 1398 struct tagfile_entry entry;
1399#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
1399 long flag = 0; 1400 long flag = 0;
1401#endif
1400 1402
1401 if (!tcs->valid || !tc_stat.ready) 1403 if (!tcs->valid || !tc_stat.ready)
1402 return false; 1404 return false;
@@ -1433,7 +1435,9 @@ static bool get_next(struct tagcache_search *tcs)
1433 } 1435 }
1434 1436
1435 seeklist = &tcs->seeklist[tcs->list_position]; 1437 seeklist = &tcs->seeklist[tcs->list_position];
1438#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
1436 flag = seeklist->flag; 1439 flag = seeklist->flag;
1440#endif
1437 tcs->position = seeklist->seek; 1441 tcs->position = seeklist->seek;
1438 tcs->idx_id = seeklist->idx_id; 1442 tcs->idx_id = seeklist->idx_id;
1439 tcs->list_position++; 1443 tcs->list_position++;