]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: use streq() if arguments must be non-NULL
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 2 Mar 2019 14:50:59 +0000 (23:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Mar 2019 14:35:56 +0000 (23:35 +0900)
src/systemctl/systemctl.c

index 966218149f1a48d83e98e22d48e1521b4e2b12e1..984dd4deaa303a458308d2ddcdc2d2ce3e175798 100644 (file)
@@ -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;