]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix indentation in lib/misc
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:00 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:00 +0000 (11:23 -0700)
open-vm-tools/lib/misc/hostname.c

index 3fc34380bbaef16047de005cd66d43fa0cc66b37..ff0cef963cc912b046541aeb989e51d907f62877 100644 (file)
@@ -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;
       }