mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 14:55:26 +03:00
bus: make sure things still compile fine without valgrind's headers installed
This commit is contained in:
parent
7211f918ba
commit
beca33eef4
@ -358,7 +358,9 @@ int bus_kernel_read_message(sd_bus *bus, sd_bus_message **m) {
|
||||
/* Let's tell valgrind that there's really no need to
|
||||
* initialize this fully. This should be removed again
|
||||
* when valgrind learned the kdbus ioctls natively. */
|
||||
#ifdef HAVE_VALGRIND_MEMCHECK_H
|
||||
VALGRIND_MAKE_MEM_DEFINED(k, sz);
|
||||
#endif
|
||||
|
||||
r = ioctl(bus->input_fd, KDBUS_CMD_MSG_RECV, bus->rbuffer);
|
||||
if (r >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user