dcavalca / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone
594167
From 5f241b4af41402be5357d6ab10b4c54378363c89 Mon Sep 17 00:00:00 2001
594167
From: Yu Watanabe <watanabe.yu+github@gmail.com>
594167
Date: Sun, 17 Apr 2022 07:25:09 +0900
594167
Subject: [PATCH] sd-bus: do not read unused value
594167
594167
(cherry picked from commit 6a7ca27740be4229b4c9f540cd610b205ca5752c)
594167
594167
Related: #2087652
594167
---
594167
 src/libsystemd/sd-bus/bus-track.c | 4 ++--
594167
 1 file changed, 2 insertions(+), 2 deletions(-)
594167
594167
diff --git a/src/libsystemd/sd-bus/bus-track.c b/src/libsystemd/sd-bus/bus-track.c
594167
index 135dfddc5f..1cbdb46f4c 100644
594167
--- a/src/libsystemd/sd-bus/bus-track.c
594167
+++ b/src/libsystemd/sd-bus/bus-track.c
594167
@@ -165,13 +165,13 @@ DEFINE_PUBLIC_TRIVIAL_REF_UNREF_FUNC(sd_bus_track, sd_bus_track, track_free);
594167
 
594167
 static int on_name_owner_changed(sd_bus_message *message, void *userdata, sd_bus_error *error) {
594167
         sd_bus_track *track = userdata;
594167
-        const char *name, *old, *new;
594167
+        const char *name;
594167
         int r;
594167
 
594167
         assert(message);
594167
         assert(track);
594167
 
594167
-        r = sd_bus_message_read(message, "sss", &name, &old, &new;;
594167
+        r = sd_bus_message_read(message, "sss", &name, NULL, NULL);
594167
         if (r < 0)
594167
                 return 0;
594167