summaryrefslogtreecommitdiff
path: root/src/core
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
parent1e1ddecf405fdeb5a073c0696fafb50946af60d2 (diff)
unit: check correct variable after strdup
Diffstat (limited to 'src/core')
-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 dd08011ff4..b245356887 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);