mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-08-30 05:50:12 +03:00
libudev: monitor - do not memset() receive buffer
This commit is contained in:
@ -8,7 +8,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
|||||||
AM_MAKEFLAGS = --no-print-directory
|
AM_MAKEFLAGS = --no-print-directory
|
||||||
|
|
||||||
LIBUDEV_CURRENT=13
|
LIBUDEV_CURRENT=13
|
||||||
LIBUDEV_REVISION=1
|
LIBUDEV_REVISION=2
|
||||||
LIBUDEV_AGE=13
|
LIBUDEV_AGE=13
|
||||||
|
|
||||||
LIBGUDEV_CURRENT=1
|
LIBGUDEV_CURRENT=1
|
||||||
|
@ -588,7 +588,6 @@ UDEV_EXPORT struct udev_device *udev_monitor_receive_device(struct udev_monitor
|
|||||||
retry:
|
retry:
|
||||||
if (udev_monitor == NULL)
|
if (udev_monitor == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
memset(buf, 0x00, sizeof(buf));
|
|
||||||
iov.iov_base = &buf;
|
iov.iov_base = &buf;
|
||||||
iov.iov_len = sizeof(buf);
|
iov.iov_len = sizeof(buf);
|
||||||
memset (&smsg, 0x00, sizeof(struct msghdr));
|
memset (&smsg, 0x00, sizeof(struct msghdr));
|
||||||
|
Reference in New Issue
Block a user