chiark / gitweb /
libudev: monitor - do not memset() receive buffer
[elogind.git] / src / libudev-monitor.c
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));