diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-12-10 23:07:46 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-12-11 00:21:35 -0500 |
commit | 007f48bb89c0aca356054aca304ba36e5acc72eb (patch) | |
tree | 521bf4af471dd51d57686453f0af520720c9b79e | |
parent | 2dc95d98e1db5cb2281d56f1151699abc443b55f (diff) |
pid1: remove unnecessary counter
The loop must terminate after at most three iterations anyway.
-rw-r--r-- | src/core/load-fragment.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 6b36b2fc3a..687cd1dd31 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -606,7 +606,6 @@ int config_parse_exec( _cleanup_strv_free_ char **n = NULL; size_t nlen = 0, nbufsize = 0; const char *f; - int i; semicolon = false; @@ -615,7 +614,7 @@ int config_parse_exec( return 0; f = firstword; - for (i = 0; i < 3; i++) { + for (;;) { /* We accept an absolute path as first argument. * If it's prefixed with - and the path doesn't exist, * we ignore it instead of erroring out; |