chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not realloc strings, which are already in the hashmap as keys
[elogind.git]
/
src
/
core
/
unit.c
diff --git
a/src/core/unit.c
b/src/core/unit.c
index 27119b0cd72880797ed770d762b6dc30dc827c36..ab313b9b91b6faa4e8bfdd53a82c9c3e331d2e23 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-2329,7
+2329,7
@@
int unit_deserialize(Unit *u, FILE *f, FDSet *fds) {
free(u->cgroup_path);
u->cgroup_path = s;
-
hashmap_put(u->manager->cgroup_unit, s, u
);
+
assert(hashmap_put(u->manager->cgroup_unit, s, u) == 1
);
continue;
}