#108 Silently ignore invalid values for donate-level option.

This commit is contained in:
XMRig 2017-09-13 18:01:28 +03:00
parent 729ee08631
commit 3a7bb24b40

View file

@ -420,8 +420,7 @@ bool Options::parseArg(int key, uint64_t arg)
case 1003: /* --donate-level */
if (arg < 1 || arg > 99) {
showUsage(1);
return false;
return true;
}
m_donateLevel = (int) arg;