diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-25 19:25:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-25 19:25:19 +0100 |
commit | 0a9f1fd79b95cc88b27915f709c9ec4df0b3f891 (patch) | |
tree | e288bf0c2f374256c87e50a0f2786d41fcc70333 /src | |
parent | 54e2e63dd28879587bc653f48520beb2956c0f16 (diff) |
kdbus: minor simplification
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd/sd-bus/bus-kernel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c index 27a59109ba..0927d82d7a 100644 --- a/src/libsystemd/sd-bus/bus-kernel.c +++ b/src/libsystemd/sd-bus/bus-kernel.c @@ -911,13 +911,12 @@ int bus_kernel_connect(sd_bus *b) { } static void close_kdbus_msg(sd_bus *bus, struct kdbus_msg *k) { - struct kdbus_cmd_free cmd; + struct kdbus_cmd_free cmd = {}; struct kdbus_item *d; assert(bus); assert(k); - cmd.flags = 0; cmd.offset = (uint8_t *)k - (uint8_t *)bus->kdbus_buffer; KDBUS_ITEM_FOREACH(d, k, items) { |