diff options
author | Colin Walters <walters@verbum.org> | 2013-12-15 20:23:23 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-12-15 20:23:23 -0500 |
commit | 8e050193e17ed002f7608ba1b1fe3371a8bb182c (patch) | |
tree | 313974b8f3c5ecf2d82416574ceb07576ff42c0f /src | |
parent | 16f4efb4150c65e3c61adaa8ea512489de49f532 (diff) |
Fix segv introduced by 2fd069b18e525860514a70d3ea08410ca122d3e2
n->path is pointing to the value now, we set s = NULL above.
Diffstat (limited to 'src')
-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); |