From 8482018afc5d11f45badf4952a6134a5cc4b1ee2 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 21 Mar 2012 18:58:51 +0100 Subject: [PATCH] libudev: monitor - do not memset() receive buffer --- Makefile.am | 2 +- src/libudev-monitor.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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)); -- 2.39.5