summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/sd-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/sd-network.c b/src/network/sd-network.c
index e7cda0d510..ba13a30aec 100644
--- a/src/network/sd-network.c
+++ b/src/network/sd-network.c
@@ -143,7 +143,7 @@ _public_ int sd_network_get_link_operational_state(unsigned index, char **state)
_public_ int sd_network_get_dhcp_lease(unsigned index, sd_dhcp_lease **ret) {
_cleanup_free_ char *p = NULL, *s = NULL;
- sd_dhcp_lease *lease;
+ sd_dhcp_lease *lease = NULL;
int r;
assert_return(index, -EINVAL);