]> git.ipfire.org Git - thirdparty/systemd.git/commit
bus-kernel: reword assignment of dst_id in bus_message_setup_kmsg
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 11 Jan 2016 17:42:42 +0000 (12:42 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 18 Jan 2016 20:21:27 +0000 (15:21 -0500)
commit066ab03acc48f49a671f147ae1754caa12980886
tree2be77f029ce478377376f3386f7a60677d2dcba6
parent5abcee286e24129bf32104aa5cf993b8e1f386e0
bus-kernel: reword assignment of dst_id in bus_message_setup_kmsg

Setting of dst_id was based on interplay of two booleans,
making the logic hard to follow (for humans and compilers alike).
gcc was confused and emmitted a warning about an uninitialized
variable. Rework the code to make it obvious that dst_id is
set properly.
src/libsystemd/sd-bus/bus-kernel.c