summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-08-03 09:55:41 +0200
committerDaniel Mack <github@zonque.org>2015-08-03 09:55:41 +0200
commitb04d9f28718fe551ff8668e9c2eac2b2283e27ca (patch)
tree8e8c357883fff84794e8f7025a23a5d0a9704311
parent8e675fc6158eef221b19ca7bfe602a0162e7d459 (diff)
parent49f6e11e89b46bacf7b26f6da3921abc1c2faa80 (diff)
Merge pull request #837 from ssahani/dhcp
networkd: fix neworkd crash
-rw-r--r--src/network/networkd-dhcp4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c
index 4aa301b112..5454bdd97b 100644
--- a/src/network/networkd-dhcp4.c
+++ b/src/network/networkd-dhcp4.c
@@ -468,7 +468,7 @@ static int dhcp_lease_acquired(sd_dhcp_client *client, Link *link) {
}
if (link->network->dhcp_hostname) {
- const char *hostname;
+ const char *hostname = NULL;
if (!link->network->hostname)
r = sd_dhcp_lease_get_hostname(lease, &hostname);