]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
parse-helpers: Silence coverity warning
authorDaan De Meyer <daan@amutable.com>
Tue, 14 Apr 2026 13:41:21 +0000 (15:41 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 14 Apr 2026 13:51:02 +0000 (15:51 +0200)
src/shared/parse-helpers.c

index 4e524bef37ed945f47dd22473aff5aa5105b2a18..da4b9fd25a3974af3d15bce228a2427bf0158541 100644 (file)
@@ -135,7 +135,7 @@ int parse_address_families(const char *rvalue, Set **families, bool *is_allowlis
 
                 /* If we previously wanted to forbid an address family and now we want to allow it, then
                  * just remove it from the list. */
-                if (!invert == *is_allowlist) {
+                if (invert != *is_allowlist) {
                         r = set_put(*families, INT_TO_PTR(af));
                         if (r < 0)
                                 return r;