From: Zbigniew Jędrzejewski-Szmek Date: Thu, 10 Mar 2022 17:29:03 +0000 (+0100) Subject: basic/env-file: inline one variable declaration X-Git-Tag: v251-rc1~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09f5fc66f24b250a1de6923284d01943191895e2;p=thirdparty%2Fsystemd.git basic/env-file: inline one variable declaration --- diff --git a/src/basic/env-file.c b/src/basic/env-file.c index 599b73bc22a..e268c5c644a 100644 --- a/src/basic/env-file.c +++ b/src/basic/env-file.c @@ -23,7 +23,6 @@ static int parse_env_file_internal( size_t n_key = 0, n_value = 0, last_value_whitespace = SIZE_MAX, last_key_whitespace = SIZE_MAX; _cleanup_free_ char *contents = NULL, *key = NULL, *value = NULL; unsigned line = 1; - char *p; int r; enum { @@ -46,7 +45,7 @@ static int parse_env_file_internal( if (r < 0) return r; - for (p = contents; *p; p++) { + for (char *p = contents; *p; p++) { char c = *p; switch (state) {