[poppler] utils/pdfseparate.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Jul 18 15:02:29 PDT 2012


 utils/pdfseparate.cc |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit dc8833a36b514c13cfd6b1fd4665d2fddd71f357
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu Jul 19 00:01:49 2012 +0200

    pdfseparate: Return 0 on success

diff --git a/utils/pdfseparate.cc b/utils/pdfseparate.cc
index 9fbbc3a..25fac5a 100644
--- a/utils/pdfseparate.cc
+++ b/utils/pdfseparate.cc
@@ -5,6 +5,7 @@
 // This file is licensed under the GPLv2 or later
 //
 // Copyright (C) 2011, 2012 Thomas Freitag <Thomas.Freitag at alfa.de>
+// Copyright (C) 2012 Albert Astals Cid <aacid at kde.org>
 //
 //========================================================================
 #include "config.h"
@@ -109,7 +110,10 @@ main (int argc, char *argv[])
       goto err0;
     }
   globalParams = new GlobalParams();
-  extractPages (argv[1], argv[2]);
+  ok = extractPages (argv[1], argv[2]);
+  if (ok) {
+    exitCode = 0;
+  }
   delete globalParams;
 
 err0:


More information about the poppler mailing list