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:
Stefan Weil 2019-05-29 07:44:52 +02:00 committed by zdenop
parent b0e0e27abf
commit 6e7dcc12e0

View File

@ -733,7 +733,7 @@ int main(int argc, char** argv) {
if (in_training_mode) { if (in_training_mode) {
renderers.push_back(nullptr); renderers.push_back(nullptr);
} else { } else if (outputbase != nullptr) {
PreloadRenderers(&api, &renderers, pagesegmode, outputbase); PreloadRenderers(&api, &renderers, pagesegmode, outputbase);
} }