From: Yu Watanabe Date: Sat, 2 Mar 2019 14:50:59 +0000 (+0900) Subject: systemctl: use streq() if arguments must be non-NULL X-Git-Tag: v242-rc1~203^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e066ef316ed1af3758b35d544c80dbca878df66;p=thirdparty%2Fsystemd.git systemctl: use streq() if arguments must be non-NULL --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 966218149f1..984dd4deaa3 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -4725,7 +4725,7 @@ static int print_property(const char *name, const char *expected_value, sd_bus_m bus_print_property_valuef(name, expected_value, value, "%s \"%s\"", strempty(a), strempty(b)); return 1; - } else if (streq_ptr(name, "SystemCallFilter")) { + } else if (streq(name, "SystemCallFilter")) { _cleanup_strv_free_ char **l = NULL; int whitelist;