From 7967779e6c6047d5606f1e348275d6a8d63ee670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 16 Apr 2013 20:06:01 +0200 Subject: [PATCH] tapdev: Fix using an uninitialized buffer --- cpu/native/net/tapdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/native/net/tapdev.c b/cpu/native/net/tapdev.c index 7386bdc96..73f3da59d 100644 --- a/cpu/native/net/tapdev.c +++ b/cpu/native/net/tapdev.c @@ -111,7 +111,7 @@ tapdev_init(void) memset(&ifr, 0, sizeof(ifr)); ifr.ifr_flags = IFF_TAP|IFF_NO_PI; if (ioctl(fd, TUNSETIFF, (void *) &ifr) < 0) { - perror(buf); + perror("ioctl(TUNSETIFF)"); exit(1); } }