]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: disambiguate return statement 31664/head
authorLuca Boccassi <bluca@debian.org>
Thu, 7 Mar 2024 00:51:43 +0000 (00:51 +0000)
committerLuca Boccassi <bluca@debian.org>
Thu, 7 Mar 2024 00:51:43 +0000 (00:51 +0000)
This works as expected, but coverity warns that it could be ambiguous and context
suggests the other way around. Add brackets to disambiguate.

CID#1535101

Follow-up for 6399be223b73ce520654242ad08de387b08b738a

src/resolve/resolved-dns-synthesize.c

index 6f483fdf0e6287a7fe747d9fe35b7d02199e3bd5..4e079864ec34de61bfd2480aeb25076896ad323b 100644 (file)
@@ -450,7 +450,7 @@ bool shall_synthesize_own_hostname_rrs(void) {
         if (r < 0 && r != -ENXIO)
                 log_debug_errno(r, "Failed to parse $SYSTEMD_RESOLVED_SYNTHESIZE_HOSTNAME: %m");
 
-        return (cached = r != 0);
+        return (cached = (r != 0));
 }
 
 int dns_synthesize_answer(