mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 14:41:36 +08:00
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:
parent
21756518e2
commit
9f2730600d
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user