aboutsummaryrefslogtreecommitdiff
path: root/thumbs.c
diff options
context:
space:
mode:
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/thumbs.c b/thumbs.c
index 8ca0c58..d6b97ea 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -92,10 +92,8 @@ static void tns_cache_write(Imlib_Image im, const char *filepath, bool force)
{
if ((dirend = strrchr(cfile, '/')) != NULL) {
*dirend = '\0';
- if (r_mkdir(cfile) == -1) {
- error(0, errno, "%s", cfile);
+ if (r_mkdir(cfile) < 0)
goto end;
- }
*dirend = '/';
}
imlib_context_set_image(im);