veth: fix uninitialized arguments
Based on patch by Sergey Popovich <popovich_sergei@mail.ru> This fixes crash when ip-link(8) invoced with command: ip link add dev veth1a type veth peer
This commit is contained in:
parent
d2468da0a3
commit
be2c3142f9
|
|
@ -26,7 +26,10 @@ static void usage(void)
|
|||
static int veth_parse_opt(struct link_util *lu, int argc, char **argv,
|
||||
struct nlmsghdr *hdr)
|
||||
{
|
||||
char *name, *type, *link, *dev;
|
||||
char *dev = NULL;
|
||||
char *name = NULL;
|
||||
char *link = NULL;
|
||||
char *type = NULL;
|
||||
int err, len;
|
||||
struct rtattr * data;
|
||||
int group;
|
||||
|
|
|
|||
Loading…
Reference in New Issue