Write cache file for thumbnail directly after creating it

This commit is contained in:
Bert
2011-04-07 16:17:10 +02:00
parent 1d0f51f95a
commit f93f4d887c
2 changed files with 12 additions and 10 deletions

2
util.c
View File

@ -123,7 +123,7 @@ char* absolute_path(const char *filename) {
twd = (char*) s_realloc(twd, len);
}
if (chdir(cwd))
die("could not revert to working directory");
die("could not revert to prior working directory");
if (!s)
goto error;
dir = twd;