mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-26 09:32:34 +01:00
rtnlutil: fix compiler error
src/rtnlutil.c: In function ‘rtnl_route_add’: ./ell/util.h:248:2: error: ‘rtmmsg’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
This commit is contained in:
parent
66b5541970
commit
236211af60
@ -330,7 +330,7 @@ static uint32_t rtnl_route_add(struct l_netlink *rtnl, int ifindex,
|
||||
void *user_data,
|
||||
l_netlink_destroy_func_t destroy)
|
||||
{
|
||||
L_AUTO_FREE_VAR(struct rtmsg *, rtmmsg);
|
||||
L_AUTO_FREE_VAR(struct rtmsg *, rtmmsg) = NULL;
|
||||
struct in_addr in_addr;
|
||||
size_t bufsize;
|
||||
void *rta_buf;
|
||||
|
Loading…
Reference in New Issue
Block a user