dcavalca / rpms / systemd

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