Blame SOURCES/0748-sd-bus-do-not-read-unused-value.patch
|
|
15abaf |
From 6f8278097070d77e39d15e5f5d11e1c8b83871c2 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 |
|
|
|
15abaf |
Related: #2084052
|
|
|
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 |
|