summaryrefslogtreecommitdiffstats
path: root/src/core/load-fragment.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-05-25 03:52:47 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-05-31 04:09:41 +0200
commitde5e6038ca0e826bc281b4957b4ed0f34ef366ea (patch)
tree48beaeec635ea7238ee0d63963e86d0287598ad5 /src/core/load-fragment.c
parenthwdb: consolidate multiple razer evdev sections (diff)
downloadsystemd-de5e6038ca0e826bc281b4957b4ed0f34ef366ea.tar.xz
systemd-de5e6038ca0e826bc281b4957b4ed0f34ef366ea.zip
load-fragment: setting empty string to Nice= resets the previous assignments
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r--src/core/load-fragment.c5
1 files changed, 5 insertions, 0 deletions
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)