rawtherapee-cli (5.1) crashing with -t option. Fixes #3891

This commit is contained in:
heckflosse 2017-05-27 14:12:48 +02:00
parent fd29535657
commit 58b3ed7c43

View File

@ -425,7 +425,7 @@ int processLineParams( int argc, char **argv )
case 't':
outputType = "tif";
compression = ((currParam.at(2) != 'z') ? 0 : 1);
compression = ((currParam.size() < 3 || currParam.at(2) != 'z') ? 0 : 1);
break;
case 'n':