chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "hostnamed: prevent it from crashing if the chassis is unknown"
[elogind.git]
/
src
/
hostname
/
hostnamed.c
diff --git
a/src/hostname/hostnamed.c
b/src/hostname/hostnamed.c
index ece5d1d410c0f94f8df06cc9e6c5b800523d5dc4..0854bc412fc8d71326180ddd07f7dde0763dda87 100644
(file)
--- a/
src/hostname/hostnamed.c
+++ b/
src/hostname/hostnamed.c
@@
-360,9
+360,6
@@
static int property_get_chassis(
else
name = c->data[PROP_CHASSIS];
- if(!name)
- name = "";
-
r = sd_bus_message_append(reply, "s", name);
if (r < 0)
return r;