fix another non shadowed variable

another variable that shouldn't have been removed in 034b6d5b

Change-Id: Ie16aa2687cec7f55e9cc2477951c228de18755cd
This commit is contained in:
William Wilgus 2022-11-15 19:17:41 -05:00
parent be65ec2338
commit 3ad8c0ad7b

View file

@ -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,
int rc_cache = dircache_search(searchflag | DCS_UPDATE_FILEREF,
&tcrc_dcfrefs[idx_id], filename);
if (rc > 0) /* in cache and we have fileref */
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 */