diff options
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r-- | src/libsystemd-bus/bus-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-objects.c b/src/libsystemd-bus/bus-objects.c index 5aa83a4426..54ed7542d2 100644 --- a/src/libsystemd-bus/bus-objects.c +++ b/src/libsystemd-bus/bus-objects.c @@ -1379,7 +1379,7 @@ static struct node *bus_node_allocate(sd_bus *bus, const char *path) { n->path = s; s = NULL; /* do not free */ - r = hashmap_put(bus->nodes, s, n); + r = hashmap_put(bus->nodes, n->path, n); if (r < 0) { free(n->path); free(n); |