]> git.ipfire.org Git - thirdparty/systemd.git/commit
bus-util: do not reset the count returned by sd_bus_track_count_name()
authorMike Yuan <me@yhndnzj.com>
Sat, 11 Jan 2025 15:26:55 +0000 (16:26 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 13 Jan 2025 20:52:18 +0000 (21:52 +0100)
commit33eeea4128f31df7ab4bd8866b582062d70114ae
treed9bb49a10edfb8754e361dee79a7b480d548c917
parent38a2c2bf6a89def24007c0dac529c07da713abfb
bus-util: do not reset the count returned by sd_bus_track_count_name()

Follow-up for 8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98

While at it, turn the retval check for sd_bus_track_count_name()
into assertion, given we're working with already established tracks
(service_name_is_valid() should never yield false in this case).

Addresses https://github.com/systemd/systemd/pull/35406#discussion_r1912066774
src/shared/bus-util.c