diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-07-09 15:45:36 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-07-12 01:09:34 +0200 |
commit | f440e1bb8a0b1262c7649da502d0e9358019b968 (patch) | |
tree | bdd01debfa2c4736e3fabe1399f8ed74b2561ab7 /src | |
parent | 1e1ddecf405fdeb5a073c0696fafb50946af60d2 (diff) |
unit: check correct variable after strdup
Diffstat (limited to 'src')
-rw-r--r-- | src/core/unit.c | 2 |
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); |