]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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 f75d0d672ae78f5119432f8a0581075983825e0e..32fcb5ef1c266a33367b1bb639fef4447289261d 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;