summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tagcache.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 2882aa8..bf2df7c 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -3807,8 +3807,11 @@ static bool check_dir(const char *dirname)
/* check for a database.ignore file */
snprintf(newpath, MAX_PATH, "%s/database.ignore", dirname);
- if(file_exists(newpath))
+ if (file_exists(newpath))
+ {
+ closedir(dir);
return false;
+ }
/* Recursively scan the dir. */
#ifdef __PCTOOL__