From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:00 +0000 (-0700) Subject: Fix indentation in lib/misc X-Git-Tag: stable-10.2.0~573 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77dc61498c64972abccd149dc7e55600dc9a0b61;p=thirdparty%2Fopen-vm-tools.git Fix indentation in lib/misc --- diff --git a/open-vm-tools/lib/misc/hostname.c b/open-vm-tools/lib/misc/hostname.c index 3fc34380b..ff0cef963 100644 --- a/open-vm-tools/lib/misc/hostname.c +++ b/open-vm-tools/lib/misc/hostname.c @@ -217,8 +217,8 @@ Hostinfo_HostName(void) p = un.nodename; - if ((gethostbyname_r(p, &he, buffer, sizeof buffer, - &phe, &error) == 0) && phe) { + if ((gethostbyname_r(p, &he, buffer, sizeof buffer, &phe, + &error) == 0) && (phe != NULL)) { p = phe->h_name; }