[poppler] utils/pdftohtml.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Fri Mar 27 14:44:07 PDT 2015
utils/pdftohtml.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 96c35dfde6722ff8c5ef7ff59e37be90d273acab
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri Mar 27 22:42:34 2015 +0100
pdftohtml: Set exit status adecuately
Based on a patch by Matt Atkinson <mutley456 at ntlworld.com>
Bug #83609
diff --git a/utils/pdftohtml.cc b/utils/pdftohtml.cc
index ffd559e..8244bbc 100644
--- a/utils/pdftohtml.cc
+++ b/utils/pdftohtml.cc
@@ -189,6 +189,7 @@ int main(int argc, char *argv[]) {
char *p;
GooString *ownerPW, *userPW;
Object info;
+ int exit_status = EXIT_FAILURE;
// parse args
ok = parseArgs(argDesc, &argc, argv);
@@ -434,6 +435,8 @@ int main(int argc, char *argv[]) {
delete htmlOut;
+ exit_status = EXIT_SUCCESS;
+
// clean up
error:
if(doc) delete doc;
@@ -447,7 +450,7 @@ int main(int argc, char *argv[]) {
Object::memCheck(stderr);
gMemReport(stderr);
- return 0;
+ return exit_status;
}
static GooString* getInfoString(Dict *infoDict, const char *key) {
More information about the poppler
mailing list