From: Zbigniew Jędrzejewski-Szmek Date: Tue, 15 Mar 2016 04:50:25 +0000 (-0400) Subject: nss-myhostname: remove dead test of variable that was not set X-Git-Tag: v230~210^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2947%2Fhead;p=thirdparty%2Fsystemd.git nss-myhostname: remove dead test of variable that was not set --- diff --git a/src/nss-myhostname/nss-myhostname.c b/src/nss-myhostname/nss-myhostname.c index 460a613b9df..2b83d127b7a 100644 --- a/src/nss-myhostname/nss-myhostname.c +++ b/src/nss-myhostname/nss-myhostname.c @@ -480,7 +480,7 @@ enum nss_status _nss_myhostname_gethostbyaddr2_r( return NSS_STATUS_NOTFOUND; found: - if (!canonical || (!additional && additional_from_hostname)) { + if (!canonical || additional_from_hostname) { hn = gethostname_malloc(); if (!hn) { *errnop = ENOMEM; @@ -490,8 +490,7 @@ found: if (!canonical) canonical = hn; - - if (!additional && additional_from_hostname) + else additional = hn; }