chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unit: check correct variable after strdup
[elogind.git]
/
src
/
core
/
unit.c
diff --git
a/src/core/unit.c
b/src/core/unit.c
index dd08011ff4801adbbf20767b02971e2d423f68c4..b245356887a3fa7c6e588e988e30b3521f862ae9 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-2326,7
+2326,7
@@
int unit_deserialize(Unit *u, FILE *f, FDSet *fds) {
char *s;
s = strdup(v);
- if (!
v
)
+ if (!
s
)
return -ENOMEM;
free(u->cgroup_path);