chiark / gitweb /
libudev: monitor - do not memset() receive buffer
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 21 Mar 2012 17:58:51 +0000 (18:58 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 22 Mar 2012 02:46:16 +0000 (03:46 +0100)
Makefile.am
src/libudev-monitor.c

index fa8060b55d22e9d53654a11a36648618e889af90..1c7f86b08157aa461078883f9ebe586c5650246e 100644 (file)
@@ -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
index 0b57072158cc49c7c35d857b7a428d7f2d298f60..77dc55572f1396e185df185f30ba9ec1ed286a8d 100644 (file)
@@ -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));