mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
pid1: remove unnecessary counter
The loop must terminate after at most three iterations anyway.
This commit is contained in:
parent
2dc95d98e1
commit
007f48bb89
@ -606,7 +606,6 @@ int config_parse_exec(
|
|||||||
_cleanup_strv_free_ char **n = NULL;
|
_cleanup_strv_free_ char **n = NULL;
|
||||||
size_t nlen = 0, nbufsize = 0;
|
size_t nlen = 0, nbufsize = 0;
|
||||||
const char *f;
|
const char *f;
|
||||||
int i;
|
|
||||||
|
|
||||||
semicolon = false;
|
semicolon = false;
|
||||||
|
|
||||||
@ -615,7 +614,7 @@ int config_parse_exec(
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
f = firstword;
|
f = firstword;
|
||||||
for (i = 0; i < 3; i++) {
|
for (;;) {
|
||||||
/* We accept an absolute path as first argument.
|
/* We accept an absolute path as first argument.
|
||||||
* If it's prefixed with - and the path doesn't exist,
|
* If it's prefixed with - and the path doesn't exist,
|
||||||
* we ignore it instead of erroring out;
|
* we ignore it instead of erroring out;
|
||||||
|
Loading…
Reference in New Issue
Block a user