diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 4739291aa8..7f12bab849 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -3537,7 +3537,8 @@ void build_tagcache(const char *path) | |||
3537 | memset(&header, 0, sizeof(struct tagcache_header)); | 3537 | memset(&header, 0, sizeof(struct tagcache_header)); |
3538 | write(cachefd, &header, sizeof(struct tagcache_header)); | 3538 | write(cachefd, &header, sizeof(struct tagcache_header)); |
3539 | 3539 | ||
3540 | strcpy(curpath, path); | 3540 | if (strcmp("/", path) != 0) |
3541 | strcpy(curpath, path); | ||
3541 | ret = check_dir(path); | 3542 | ret = check_dir(path); |
3542 | 3543 | ||
3543 | /* Write the header. */ | 3544 | /* Write the header. */ |