summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-11-10 09:52:46 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-11-10 09:52:46 +0000
commit6a86036e90508bd319c56370967e24eb7f59771a (patch)
tree132c494e530d8941c7950bb0e826d761c18bf406 /apps
parent0dd7ea2d712944b21ede9f57bebd1009b03932e6 (diff)
downloadrockbox-6a86036e90508bd319c56370967e24eb7f59771a.zip
rockbox-6a86036e90508bd319c56370967e24eb7f59771a.tar.gz
rockbox-6a86036e90508bd319c56370967e24eb7f59771a.tar.bz2
rockbox-6a86036e90508bd319c56370967e24eb7f59771a.tar.xz
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
Diffstat (limited to 'apps')
-rw-r--r--apps/tagcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 4739291..7f12bab 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. */