fix: --make without argument should not segfault

This commit is contained in:
Sebastian Ullrich 2019-12-10 16:37:18 +01:00
parent b418ab7624
commit 5e1fd62ae4

View file

@ -466,7 +466,9 @@ int main(int argc, char ** argv) {
break;
case 'm':
make_mode = true;
olean_fn = optarg;
if (optarg) {
olean_fn = optarg;
}
break;
case 'M':
opts = opts.update(get_max_memory_opt_name(), static_cast<unsigned>(atoi(optarg)));