chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16f4efb
)
Fix segv introduced by 2fd069b18e525860514a70d3ea08410ca122d3e2
author
Colin Walters
<walters@verbum.org>
Mon, 16 Dec 2013 01:23:23 +0000
(20:23 -0500)
committer
Colin Walters
<walters@verbum.org>
Mon, 16 Dec 2013 01:23:23 +0000
(20:23 -0500)
n->path is pointing to the value now, we set s = NULL above.
src/libsystemd-bus/bus-objects.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-bus/bus-objects.c
b/src/libsystemd-bus/bus-objects.c
index 5aa83a44262c4952156b1c254b3e13dde5e20a06..54ed7542d27473dce8222e4af3191d390a5fd151 100644
(file)
--- 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);