summaryrefslogtreecommitdiffstats
path: root/apps/tagcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index a6c4c875be..b91195813e 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -4333,11 +4333,11 @@ static bool load_tagcache(void)
unsigned int searchflag = auto_update ? DCS_STORAGE_PATH :
DCS_CACHED_PATH;
- rc = dircache_search(searchflag | DCS_UPDATE_FILEREF,
- &tcrc_dcfrefs[idx_id], filename);
- if (rc > 0) /* in cache and we have fileref */
+ int rc_cache = dircache_search(searchflag | DCS_UPDATE_FILEREF,
+ &tcrc_dcfrefs[idx_id], filename);
+ if (rc_cache > 0) /* in cache and we have fileref */
idx->flag |= FLAG_DIRCACHE;
- else if (rc == 0) /* not in cache but okay */
+ else if (rc_cache == 0) /* not in cache but okay */
;
else if (auto_update)
#else /* ndef HAVE_DIRCACHE */