summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2012-03-21 18:58:51 +0100
committerKay Sievers <kay.sievers@vrfy.org>2012-03-22 03:46:16 +0100
commit8482018afc5d11f45badf4952a6134a5cc4b1ee2 (patch)
treec5e1aa22e9537a248355d8e1e813ee8973b20d6c
parentabac5c7976c019be41f187bf97d6acffbe6caa8d (diff)
libudev: monitor - do not memset() receive buffer
-rw-r--r--Makefile.am2
-rw-r--r--src/libudev-monitor.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index fa8060b55d..1c7f86b081 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,7 +8,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
LIBUDEV_CURRENT=13
-LIBUDEV_REVISION=1
+LIBUDEV_REVISION=2
LIBUDEV_AGE=13
LIBGUDEV_CURRENT=1
diff --git a/src/libudev-monitor.c b/src/libudev-monitor.c
index 0b57072158..77dc55572f 100644
--- a/src/libudev-monitor.c
+++ b/src/libudev-monitor.c
@@ -588,7 +588,6 @@ UDEV_EXPORT struct udev_device *udev_monitor_receive_device(struct udev_monitor
retry:
if (udev_monitor == NULL)
return NULL;
- memset(buf, 0x00, sizeof(buf));
iov.iov_base = &buf;
iov.iov_len = sizeof(buf);
memset (&smsg, 0x00, sizeof(struct msghdr));