From f6e11b394e5ad22e16b6b076bfb897f7509b59d7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 14 Nov 2017 21:50:59 +0100 Subject: [PATCH] core: fix bus property logic for RequiresMountsFor= dependencies (#7332) We get a pointer to a pointer to a Hashmap, instead of just a pointer to a Hashmap, let's handle that properly. --- src/core/dbus-unit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index f75d0d672a..32fcb5ef1c 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -147,9 +147,9 @@ static int property_get_requires_mounts_for( void *userdata, sd_bus_error *error) { - Hashmap *h = (Hashmap*) userdata; - Iterator j; + Hashmap *h = *(Hashmap**) userdata; const char *p; + Iterator j; void *v; int r;