diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-17 00:25:09 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-19 11:02:10 +0200 |
commit | 6a7ca27740be4229b4c9f540cd610b205ca5752c (patch) | |
tree | 635ffcccf2f295bfee1c39dabda30bf70f7953c2 /src/libsystemd/sd-bus/bus-track.c | |
parent | sd-bus: introduce ref/unref function for track_item (diff) | |
download | systemd-6a7ca27740be4229b4c9f540cd610b205ca5752c.tar.xz systemd-6a7ca27740be4229b4c9f540cd610b205ca5752c.zip |
sd-bus: do not read unused value
Diffstat (limited to '')
-rw-r--r-- | src/libsystemd/sd-bus/bus-track.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-bus/bus-track.c b/src/libsystemd/sd-bus/bus-track.c index 135dfddc5f..1cbdb46f4c 100644 --- a/src/libsystemd/sd-bus/bus-track.c +++ b/src/libsystemd/sd-bus/bus-track.c @@ -165,13 +165,13 @@ DEFINE_PUBLIC_TRIVIAL_REF_UNREF_FUNC(sd_bus_track, sd_bus_track, track_free); static int on_name_owner_changed(sd_bus_message *message, void *userdata, sd_bus_error *error) { sd_bus_track *track = userdata; - const char *name, *old, *new; + const char *name; int r; assert(message); assert(track); - r = sd_bus_message_read(message, "sss", &name, &old, &new); + r = sd_bus_message_read(message, "sss", &name, NULL, NULL); if (r < 0) return 0; |