File veth-fix-uninitialized-arguments.patch of Package iproute2

From: Stephen Hemminger <stephen@networkplumber.org>
Date: Fri, 20 Dec 2013 08:25:13 -0800
Subject: veth: fix uninitialized arguments
Patch-mainline: v3.14.0
Git-commit: be2c3142f9a76ae1f036fc4316ff425f6455ce3a
References: bnc#879865

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

---
 ip/link_veth.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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