1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

nss-myhostname: remove dead test of variable that was not set

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-03-15 00:50:25 -04:00
parent 2abb5b3b10
commit 82e4c2d656

View File

@ -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;
}