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