mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-14 00:31:47 +08:00
Fix crash in PreloadRenderers with nullptr outputbase
The crash could be triggered by a wrong command line. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
b0e0e27abf
commit
6e7dcc12e0
@ -733,7 +733,7 @@ int main(int argc, char** argv) {
|
||||
|
||||
if (in_training_mode) {
|
||||
renderers.push_back(nullptr);
|
||||
} else {
|
||||
} else if (outputbase != nullptr) {
|
||||
PreloadRenderers(&api, &renderers, pagesegmode, outputbase);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user