diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-10 18:29:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-03-18 10:22:20 +0100 |
commit | 09f5fc66f24b250a1de6923284d01943191895e2 (patch) | |
tree | ed06647387328e25b5ee3a0c77aebecb9216b725 /src/basic | |
parent | 20afd9a184eba4c358ff6470e0e6deb441b1095f (diff) | |
download | systemd-09f5fc66f24b250a1de6923284d01943191895e2.tar.gz |
basic/env-file: inline one variable declaration
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/env-file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/env-file.c b/src/basic/env-file.c index 599b73bc22..e268c5c644 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) { |