From: Kay Sievers Date: Wed, 21 Mar 2012 17:58:51 +0000 (+0100) Subject: libudev: monitor - do not memset() receive buffer X-Git-Tag: v183~456^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8482018afc5d11f45badf4952a6134a5cc4b1ee2;p=systemd libudev: monitor - do not memset() receive buffer --- diff --git a/Makefile.am b/Makefile.am index fa8060b5..1c7f86b0 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 0b570721..77dc5557 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));