summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-15 19:17:41 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-11-15 19:17:41 -0500
commit3ad8c0ad7ba9413d4179dc0bb698de0d1cdf28f3 (patch)
tree00780a89b8e092910e6502abb0cbe0f67bcad06e
parentbe65ec23388937cab264cb4d0174b6471487e9ce (diff)
downloadrockbox-3ad8c0ad7b.tar.gz
rockbox-3ad8c0ad7b.zip
fix another non shadowed variable
another variable that shouldn't have been removed in 034b6d5b Change-Id: Ie16aa2687cec7f55e9cc2477951c228de18755cd
-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 */