Fix bug causing bogus image cache directory files to be written.
SVN revision: 43062
This commit is contained in:
parent
02a82cf6f3
commit
3b51bcd980
|
@ -111,11 +111,12 @@ MenuLoadFromDirectory(Menu * m)
|
|||
if (stat(dir, &st) < 0)
|
||||
return 1;
|
||||
|
||||
Esnprintf(cs, sizeof(cs), "%s/cached/img/%s",
|
||||
EDirUserCache(), _dircache_filename(ss, sizeof(ss), &st));
|
||||
|
||||
if (Mode.backgrounds.force_scan)
|
||||
goto skip_dir_cache;
|
||||
|
||||
Esnprintf(cs, sizeof(cs), "%s/cached/img/%s",
|
||||
EDirUserCache(), _dircache_filename(ss, sizeof(ss), &st));
|
||||
if (exists(cs))
|
||||
{
|
||||
/* cached dir listing - use it */
|
||||
|
|
Loading…
Reference in New Issue