summaryrefslogtreecommitdiff
path: root/src/generic
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-06 15:59:23 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-06 15:59:23 +0900
commit2bcb4105e1dc3c2cc7d4dee0fe100806ee8fa5ea (patch)
tree6ac1e819dacd6e7bdb38d3034d122a120f573174 /src/generic
parent83752435cf52da3bdcaf7f717922076f97d90bd5 (diff)
pdf loader - check return for rmdir
fixes CID 1361218
Diffstat (limited to 'src/generic')
-rw-r--r--src/generic/evas/pdf/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/generic/evas/pdf/main.cpp b/src/generic/evas/pdf/main.cpp
index 71d016c..65a4008 100644
--- a/src/generic/evas/pdf/main.cpp
+++ b/src/generic/evas/pdf/main.cpp
@@ -338,7 +338,10 @@ main(int argc, char **argv)
338 if (tmpdir) 338 if (tmpdir)
339 { 339 {
340 if (generated) unlink(generated); 340 if (generated) unlink(generated);
341 rmdir(tmpdir); 341 if (rmdir(tmpdir) < 0)
342 {
343 D("Failed to delete tmpdir %s\n", tmpdir);
344 }
342 345
343 eina_tmpstr_del(tmpdir); 346 eina_tmpstr_del(tmpdir);
344 eina_tmpstr_del(generated); 347 eina_tmpstr_del(generated);