chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0053a47
)
core/mount-setup: remove part of check which is always true
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 10 May 2018 00:03:23 +0000
(
02:03
+0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000
(16:47 +0200)
k was set to join_controllers at this point and only incremented, so
it cannot be null at this point.
CID #
1390949
.
src/core/mount-setup.c
patch
|
blob
|
history
diff --git
a/src/core/mount-setup.c
b/src/core/mount-setup.c
index d98507db1928463cf97469a51f8baeeb1db64b98..ac8c32c13954350fa9f034109abf2b0cab3e04f8 100644
(file)
--- a/
src/core/mount-setup.c
+++ b/
src/core/mount-setup.c
@@
-294,7
+294,7
@@
int mount_cgroup_controllers(char ***join_controllers) {
if (strv_find(*k, controller))
break;
- if (
k &&
*k) {
+ if (*k) {
char **i, **j;
for (i = *k, j = *k; *i; i++) {