summaryrefslogtreecommitdiff
path: root/src/core/dbus-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-03-04 00:52:40 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-03 21:17:38 +0100
commitdd0395b5654c52e982adf6d354db9c7fdcf4b6c7 (patch)
treea83a6f7757a495b3365bc32a38d0d14df7b28cb4 /src/core/dbus-util.h
parentfbd6ac2601d628edf60c99cdf214e243b0b025ad (diff)
downloadsystemd-dd0395b5654c52e982adf6d354db9c7fdcf4b6c7.tar.gz
make namespace_flags_to_string() not return empty string
This improves the following debug log. Before: systemd[1162]: Restricting namespace to: . After: systemd[1162]: Restricting namespace to: n/a.
Diffstat (limited to 'src/core/dbus-util.h')
-rw-r--r--src/core/dbus-util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/dbus-util.h b/src/core/dbus-util.h
index a3316c6701..ec8c245fff 100644
--- a/src/core/dbus-util.h
+++ b/src/core/dbus-util.h
@@ -127,7 +127,8 @@ int bus_property_get_triggered_unit(sd_bus *bus, const char *path, const char *i
if (!UNIT_WRITE_FLAGS_NOOP(flags)) { \
*p = (cast_type) v; \
unit_write_settingf(u, flags, name, \
- "%s=%s", name, s); \
+ "%s=%s", \
+ name, strempty(s)); \
} \
\
return 1; \