Skip to content

Commit e0c2f0a

Browse files
committed
Fix crash in PreloadRenderers with nullptr outputbase
The crash could be triggered by a wrong command line. Signed-off-by: Stefan Weil <[email protected]>
1 parent 9a4bd04 commit e0c2f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/tesseractmain.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ int main(int argc, char** argv) {
733733

734734
if (in_training_mode) {
735735
renderers.push_back(nullptr);
736-
} else {
736+
} else if (outputbase != nullptr) {
737737
PreloadRenderers(&api, &renderers, pagesegmode, outputbase);
738738
}
739739

0 commit comments

Comments
 (0)