fix segfault for --list-langs

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1006 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
zdenop@gmail.com 2014-01-22 21:32:20 +00:00
parent 21756518e2
commit 9f2730600d

View File

@ -159,7 +159,7 @@ int main(int argc, char **argv) {
exit(1);
}
if (strcmp(output, "-") && strcmp(output, "stdout")) {
if (output != NULL && strcmp(output, "-") && strcmp(output, "stdout")) {
tprintf("Tesseract Open Source OCR Engine v%s with Leptonica\n",
tesseract::TessBaseAPI::Version());
}