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
1 changed files with 1 additions and 1 deletions

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;