projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9228fef
)
shared: no need to check result of strndupa()
author
Lennart Poettering
<lennart@poettering.net>
Tue, 16 Jul 2019 10:09:02 +0000
(12:09 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 16 Jul 2019 10:40:22 +0000
(12:40 +0200)
src/shared/bus-unit-procs.c
patch
|
blob
|
history
diff --git
a/src/shared/bus-unit-procs.c
b/src/shared/bus-unit-procs.c
index b9be8fe1bef231fbcd0c82c4053ce3d2b73db4cc..b21fe393265f576f27ddffc2d9a5cde03a272e22 100644
(file)
--- a/
src/shared/bus-unit-procs.c
+++ b/
src/shared/bus-unit-procs.c
@@
-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)