summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-06 13:38:28 +0100
committerKay Sievers <kay@vrfy.org>2013-11-06 13:38:28 +0100
commit6c8ea34fd945103e2f998403fea68bb0006e8057 (patch)
tree063cfa36134abc0a9209a425bbdf3c149e26c22b
parentf3669545238702f8ffee7b743ca4347b785b558a (diff)
Revert "hostnamed: prevent it from crashing if the chassis is unknown"
This reverts commit 95b015de3849d8d8d03d9441ae1682a04c38833b. "bus: handle serialization of NULL strings" (cd6f997f71c3aba16aa08226d423d14cbc787f82) should fix this issue.
-rw-r--r--src/hostname/hostnamed.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c
index ece5d1d410..0854bc412f 100644
--- 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;