plib: fix crash when argument is missing. (nw)

This commit is contained in:
couriersud 2019-04-13 23:32:47 +02:00
parent eec0b202b0
commit 6ed04fe619

View File

@ -158,7 +158,9 @@ namespace plib {
}
else
{
i++; // FIXME: are there more arguments?
i++;
if (i >= argc)
return i - 1;
if (opt->do_parse(pstring(argv[i])) != 0)
return i - 1;
}