diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-12-26 07:02:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-26 07:02:44 +0100 |
commit | 927a4f24e09e879ae1006aab32ead81985c61865 (patch) | |
tree | 5e1ead3a895263522c061d9de733514a86476f41 /src/nvim/os/env.c | |
parent | 5f1aec5abdb551e5f3035ca054d36580b3233efb (diff) | |
parent | 234c4a846bc78b2cc119b72b994b3ac3f401c8c3 (diff) | |
download | rneovim-927a4f24e09e879ae1006aab32ead81985c61865.tar.gz rneovim-927a4f24e09e879ae1006aab32ead81985c61865.tar.bz2 rneovim-927a4f24e09e879ae1006aab32ead81985c61865.zip |
Merge #11612 from janlazo/clang-pvs
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r-- | src/nvim/os/env.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index 360609c50d..ec266796a8 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -266,10 +266,8 @@ void os_copy_fullenv(char **env, size_t env_size) extern char **environ; # endif - size_t i = 0; - while (environ[i] != NULL && i < env_size) { + for (size_t i = 0; i < env_size && environ[i] != NULL; i++) { env[i] = xstrdup(environ[i]); - i++; } #endif } |