]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared: no need to check result of strndupa() 13073/head
authorLennart Poettering <lennart@poettering.net>
Tue, 16 Jul 2019 10:09:02 +0000 (12:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Jul 2019 10:40:22 +0000 (12:40 +0200)
src/shared/bus-unit-procs.c

index b9be8fe1bef231fbcd0c82c4053ce3d2b73db4cc..b21fe393265f576f27ddffc2d9a5cde03a272e22 100644 (file)
@@ -47,8 +47,6 @@ static int add_cgroup(Hashmap *cgroups, const char *path, bool is_const, struct
                         return -EINVAL;
 
                 pp = strndupa(path, e - path);
-                if (!pp)
-                        return -ENOMEM;
 
                 r = add_cgroup(cgroups, pp, false, &parent);
                 if (r < 0)