core: fix bus property logic for RequiresMountsFor= dependencies (#7332)
authorLennart Poettering <lennart@poettering.net>
Tue, 14 Nov 2017 20:50:59 +0000 (21:50 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 14 Nov 2017 20:50:59 +0000 (21:50 +0100)
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

index f75d0d6..32fcb5e 100644 (file)
@@ -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;