load-fragment: setting empty string to Nice= resets the previous assignments

This commit is contained in:
Yu Watanabe 2018-05-25 10:52:47 +09:00
parent 18944130b0
commit de5e6038ca

View File

@ -490,6 +490,11 @@ int config_parse_exec_nice(
assert(rvalue);
assert(data);
if (isempty(rvalue)) {
c->nice_set = false;
return 0;
}
r = parse_nice(rvalue, &priority);
if (r < 0) {
if (r == -ERANGE)