tagcache open_files(): open the correct file (missed in r27656)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28114 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-09-19 08:17:15 +00:00
parent d2000a9178
commit 961b5dd4c1

View file

@ -680,7 +680,7 @@ static bool open_files(struct tagcache_search *tcs, int tag)
snprintf(fn, sizeof fn, TAGCACHE_FILE_INDEX, tag);
file = get_user_file_path(fn, IS_FILE | NEED_WRITE, path, sizeof(path));
tcs->idxfd[tag] = open(fn, O_RDONLY);
tcs->idxfd[tag] = open(file, O_RDONLY);
}
if (tcs->idxfd[tag] < 0)