chiark / gitweb /
sd-network: avoid false positive compiler warning caused by LTO
[elogind.git] / src / network / sd-network.c
index e7cda0d51014a8896bfdc15db32c51f49dc45ec7..ba13a30aec04e18f5dd5fe1932168db77e816013 100644 (file)
@@ -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);