diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc
index 94a4e1d..162ffea 100644
--- a/src/pdf2htmlEX.cc
+++ b/src/pdf2htmlEX.cc
@@ -53,7 +53,7 @@ void show_version_and_exit(const char * dummy = nullptr)
cerr << "Libraries: ";
cerr << "poppler " << POPPLER_VERSION << ", ";
cerr << "libfontforge " << ffw_get_version() << endl;
- exit(EXIT_FAILURE);
+ exit(EXIT_SUCCESS);
}
void parse_options (int argc, char **argv)