From de5e6038ca0e826bc281b4957b4ed0f34ef366ea Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 25 May 2018 10:52:47 +0900 Subject: load-fragment: setting empty string to Nice= resets the previous assignments --- src/core/load-fragment.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/load-fragment.c') diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 0bc162ad1d..d2ce73f726 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -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) -- cgit v1.2.3