diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-08-31 17:02:33 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-08-31 17:08:30 +0900 |
commit | ae978b9f6c8b8e617cc00e232aebf2c220e17688 (patch) | |
tree | 388fe32f7278907a4fbf574698c3628e04cb721f /src/shared/bus-util.c | |
parent | 52610b020c077ee769c6923249f7e6c4e99d2980 (diff) | |
download | systemd-ae978b9f6c8b8e617cc00e232aebf2c220e17688.tar.gz |
bus-util: remove unnecessary initializations
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r-- | src/shared/bus-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index ea29e1c0dd..48752c5fea 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -734,7 +734,7 @@ int bus_print_property(const char *name, sd_bus_message *property, bool value, b print_property(name, "%s", format_timespan(timespan, sizeof(timespan), u, 0)); } else if (streq(name, "RestrictNamespaces")) { _cleanup_free_ char *s = NULL; - const char *result = NULL; + const char *result; if ((u & NAMESPACE_FLAGS_ALL) == 0) result = "yes"; @@ -751,7 +751,7 @@ int bus_print_property(const char *name, sd_bus_message *property, bool value, b print_property(name, "%s", result); } else if (streq(name, "MountFlags")) { - const char *result = NULL; + const char *result; result = mount_propagation_flags_to_string(u); if (!result) |