projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f366954
)
Revert "hostnamed: prevent it from crashing if the chassis is unknown"
author
Kay Sievers
<kay@vrfy.org>
Wed, 6 Nov 2013 12:38:28 +0000
(13:38 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Wed, 6 Nov 2013 12:38:28 +0000
(13:38 +0100)
This reverts commit
95b015de3849d8d8d03d9441ae1682a04c38833b
.
"bus: handle serialization of NULL strings" (
cd6f997f71c3aba16aa08226d423d14cbc787f82
)
should fix this issue.
src/hostname/hostnamed.c
patch
|
blob
|
history
diff --git
a/src/hostname/hostnamed.c
b/src/hostname/hostnamed.c
index
ece5d1d
..
0854bc4
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;