From a7d39b0ab8fabb4f6417bb69a4e70d9da598d1aa Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Wed, 28 Oct 2015 23:21:12 +0100 Subject: Simplified r_mkdir() --- thumbs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'thumbs.c') diff --git a/thumbs.c b/thumbs.c index f10a1aa..c4cc130 100644 --- a/thumbs.c +++ b/thumbs.c @@ -92,7 +92,8 @@ void tns_cache_write(Imlib_Image im, const char *filepath, bool force) { if ((dirend = strrchr(cfile, '/')) != NULL) { *dirend = '\0'; - err = r_mkdir(cfile); + if ((err = r_mkdir(cfile)) == -1) + error(0, errno, "%s", cfile); *dirend = '/'; } if (err == 0) { -- cgit v1.2.3-54-g00ecf