From 007f48bb89c0aca356054aca304ba36e5acc72eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 10 Dec 2016 23:07:46 -0500 Subject: [PATCH] pid1: remove unnecessary counter The loop must terminate after at most three iterations anyway. --- src/core/load-fragment.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 6b36b2fc3a5..687cd1dd317 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;