3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +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:
James Prestwood 2019-07-31 10:34:46 -07:00 committed by Denis Kenzior
parent 66b5541970
commit 236211af60

View File

@ -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;