diff --git a/src/util/platform/FFPlatform_unix.c b/src/util/platform/FFPlatform_unix.c index 22066964d..255211a34 100644 --- a/src/util/platform/FFPlatform_unix.c +++ b/src/util/platform/FFPlatform_unix.c @@ -150,10 +150,7 @@ static void getUserName(FFPlatform* platform, const struct passwd* pwd) static void getHostName(FFPlatform* platform, const struct utsname* uts) { - const char* hostname = getenv("HOSTNAME"); - if(!ffStrSet(hostname) && uts) - hostname = uts->nodename; - ffStrbufAppendS(&platform->hostName, hostname); + ffStrbufAppendS(&platform->hostName, uts->nodename); } static void getUserShell(FFPlatform* platform, const struct passwd* pwd)