chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-network: avoid false positive compiler warning caused by LTO
[elogind.git]
/
src
/
network
/
sd-network.c
diff --git
a/src/network/sd-network.c
b/src/network/sd-network.c
index e7cda0d51014a8896bfdc15db32c51f49dc45ec7..ba13a30aec04e18f5dd5fe1932168db77e816013 100644
(file)
--- 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;
_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);
int r;
assert_return(index, -EINVAL);