Merge pull request #31664 from bluca/coverity

Coverity fixes
This commit is contained in:
Mike Yuan
2024-03-07 16:02:57 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View 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(