From f440e1bb8a0b1262c7649da502d0e9358019b968 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Tue, 9 Jul 2013 15:45:36 +0200 Subject: unit: check correct variable after strdup --- src/core/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf