diff options
author | Bert Münnich <ber.t@posteo.de> | 2015-10-28 23:21:12 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2015-10-28 23:21:12 +0100 |
commit | a7d39b0ab8fabb4f6417bb69a4e70d9da598d1aa (patch) | |
tree | 9e1e5e65bc2815c42cac5299e579d1638728070d /thumbs.c | |
parent | d3a70a285d03224fde9e6ef36eba9de21b773f39 (diff) | |
download | nsxiv-a7d39b0ab8fabb4f6417bb69a4e70d9da598d1aa.tar.zst |
Simplified r_mkdir()
Diffstat (limited to 'thumbs.c')
-rw-r--r-- | thumbs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |