naccyde / rpms / systemd

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