diff options
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/xpdf/pdfdetach.cc')
-rw-r--r-- | Build/source/libs/xpdf/xpdf-src/xpdf/pdfdetach.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/xpdf/pdfdetach.cc b/Build/source/libs/xpdf/xpdf-src/xpdf/pdfdetach.cc index e8b74381017..581383fe730 100644 --- a/Build/source/libs/xpdf/xpdf-src/xpdf/pdfdetach.cc +++ b/Build/source/libs/xpdf/xpdf-src/xpdf/pdfdetach.cc @@ -94,6 +94,10 @@ int main(int argc, char *argv[]) { fileName = argv[1]; // read config file + if (cfgFileName[0] && !pathIsFile(cfgFileName)) { + error(errConfig, -1, "Config file '{0:s}' doesn't exist or isn't a file", + cfgFileName); + } globalParams = new GlobalParams(cfgFileName); if (textEncName[0]) { globalParams->setTextEncoding(textEncName); |