diff options
Diffstat (limited to 'src/hostname/hostnamectl.c')
-rw-r--r-- | src/hostname/hostnamectl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c index d194e9b629..dcbad99ae9 100644 --- a/src/hostname/hostnamectl.c +++ b/src/hostname/hostnamectl.c @@ -273,13 +273,13 @@ static int set_hostname(sd_bus *bus, char **args, unsigned n) { if (arg_static && hostname_is_valid(hostname, true)) { p = ""; /* maybe get rid of trailing dot */ - hostname = hostname_cleanup(hostname, false); + hostname = hostname_cleanup(hostname); } else { p = h = strdup(hostname); if (!p) return log_oom(); - hostname_cleanup(hostname, false); + hostname_cleanup(hostname); } r = set_simple_string(bus, "SetPrettyHostname", p); |