summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-07-09 15:45:36 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-12 01:09:34 +0200
commitf440e1bb8a0b1262c7649da502d0e9358019b968 (patch)
treebdd01debfa2c4736e3fabe1399f8ed74b2561ab7 /src/core/unit.c
parent1e1ddecf405fdeb5a073c0696fafb50946af60d2 (diff)
unit: check correct variable after strdup
Diffstat (limited to 'src/core/unit.c')
-rw-r--r--src/core/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index dd08011ff..b24535688 100644
--- 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);