unit: check correct variable after strdup

This commit is contained in:
Lukas Nykryn 2013-07-09 15:45:36 +02:00 committed by Lennart Poettering
parent 1e1ddecf40
commit f440e1bb8a

View file

@ -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);