chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:15 +0000 (15:22 +0200)
commit75cbb152e09780f094d869c5d92d6815442f2900
tree43bf5ddc8fa5389972aea0dd9f99106327bc5ce3
parent2647e847a11b64dd3757c88afbc1fbb2fb384a6f
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/libelogind/sd-bus/bus-kernel.c