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
This commit is contained in:
Miika Pekkarinen 2006-11-10 09:52:46 +00:00
parent 0dd7ea2d71
commit 6a86036e90

View file

@ -3537,7 +3537,8 @@ void build_tagcache(const char *path)
memset(&header, 0, sizeof(struct tagcache_header)); memset(&header, 0, sizeof(struct tagcache_header));
write(cachefd, &header, 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); ret = check_dir(path);
/* Write the header. */ /* Write the header. */