summaryrefslogtreecommitdiff
path: root/src/hostname
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostname')
-rw-r--r--src/hostname/hostnamectl.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c
index 852da6bb8e..283038c7cb 100644
--- a/src/hostname/hostnamectl.c
+++ b/src/hostname/hostnamectl.c
@@ -158,17 +158,10 @@ static int print_status_info(StatusInfo *i) {
}
if (!isempty(i->os_pretty_name)) {
- _cleanup_free_ char *formatted = NULL;
- const char *t = i->os_pretty_name;
-
- if (i->home_url) {
- if (terminal_urlify(i->home_url, i->os_pretty_name, &formatted) >= 0)
- t = formatted;
- }
-
r = table_add_many(table,
TABLE_STRING, "Operating System:",
- TABLE_STRING, t);
+ TABLE_STRING, i->os_pretty_name,
+ TABLE_SET_URL, i->home_url);
if (r < 0)
return table_log_add_error(r);
}