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
diff --git a/ip/link_veth.c b/ip/link_veth.c
index 7730f39..f357182 100644
--- a/ip/link_veth.c
+++ b/ip/link_veth.c
@@ -26,7 +26,10 @@
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;