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:
parent
0dd7ea2d71
commit
6a86036e90
1 changed files with 2 additions and 1 deletions
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue