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:
1e1ddec
)
unit: check correct variable after strdup
author
Lukas Nykryn
<lnykryn@redhat.com>
Tue, 9 Jul 2013 13:45:36 +0000
(15:45 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 11 Jul 2013 23:09:34 +0000
(
01:09
+0200)
src/core/unit.c
patch
|
blob
|
history
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);