0daf48d9aa
Resolves: #2047682,#2068043,#2068131,#2073003,#2073994,#2082131,#2083493,#2087652,#2100340
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From 73c3e230dd66bedc82fa6dbf020c8d24592a32be Mon Sep 17 00:00:00 2001
|
|
From: Yu Watanabe <watanabe.yu+github@gmail.com>
|
|
Date: Sun, 17 Apr 2022 08:00:20 +0900
|
|
Subject: [PATCH] sd-bus: use hashmap_contains() and drop unnecessary cast
|
|
|
|
(cherry picked from commit c399ed923d6fa4bf731455d485cac5f00e060806)
|
|
|
|
Related: #2087652
|
|
---
|
|
src/libsystemd/sd-bus/bus-track.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/libsystemd/sd-bus/bus-track.c b/src/libsystemd/sd-bus/bus-track.c
|
|
index c56bd03fc6..4c44162108 100644
|
|
--- a/src/libsystemd/sd-bus/bus-track.c
|
|
+++ b/src/libsystemd/sd-bus/bus-track.c
|
|
@@ -287,7 +287,7 @@ _public_ const char* sd_bus_track_contains(sd_bus_track *track, const char *name
|
|
if (!track) /* Let's consider a NULL object equivalent to an empty object */
|
|
return NULL;
|
|
|
|
- return hashmap_get(track->names, (void*) name) ? name : NULL;
|
|
+ return hashmap_contains(track->names, name) ? name : NULL;
|
|
}
|
|
|
|
_public_ const char* sd_bus_track_first(sd_bus_track *track) {
|