b7dd4d
From 480658d6c79f494e820eb3da59a1818b5b7c3c8b Mon Sep 17 00:00:00 2001
ff479f
From: Yu Watanabe <watanabe.yu+github@gmail.com>
ff479f
Date: Sun, 17 Apr 2022 07:25:09 +0900
ff479f
Subject: [PATCH] sd-bus: do not read unused value
ff479f
ff479f
(cherry picked from commit 6a7ca27740be4229b4c9f540cd610b205ca5752c)
ff479f
b7dd4d
Related: #2047373
ff479f
---
ff479f
 src/libsystemd/sd-bus/bus-track.c | 4 ++--
ff479f
 1 file changed, 2 insertions(+), 2 deletions(-)
ff479f
ff479f
diff --git a/src/libsystemd/sd-bus/bus-track.c b/src/libsystemd/sd-bus/bus-track.c
ff479f
index b1ec5ecbbb..b9965d9d64 100644
ff479f
--- a/src/libsystemd/sd-bus/bus-track.c
ff479f
+++ b/src/libsystemd/sd-bus/bus-track.c
ff479f
@@ -182,13 +182,13 @@ _public_ sd_bus_track* sd_bus_track_unref(sd_bus_track *track) {
ff479f
 
ff479f
 static int on_name_owner_changed(sd_bus_message *message, void *userdata, sd_bus_error *error) {
ff479f
         sd_bus_track *track = userdata;
ff479f
-        const char *name, *old, *new;
ff479f
+        const char *name;
ff479f
         int r;
ff479f
 
ff479f
         assert(message);
ff479f
         assert(track);
ff479f
 
ff479f
-        r = sd_bus_message_read(message, "sss", &name, &old, &new;;
ff479f
+        r = sd_bus_message_read(message, "sss", &name, NULL, NULL);
ff479f
         if (r < 0)
ff479f
                 return 0;
ff479f