From 6a86036e90508bd319c56370967e24eb7f59771a Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Fri, 10 Nov 2006 09:52:46 +0000 Subject: [PATCH] Don't add extra slash at beginning when creating db. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11498 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) memset(&header, 0, sizeof(struct tagcache_header)); write(cachefd, &header, sizeof(struct tagcache_header)); - strcpy(curpath, path); + if (strcmp("/", path) != 0) + strcpy(curpath, path); ret = check_dir(path); /* Write the header. */