diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-04-15 11:15:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 17:15:47 +0800 |
commit | 4503cb6b642e0b1ba8157154af6a220387e607f0 (patch) | |
tree | b2bff85b0fd4f6414bb9e6035b2573824033cc4f /src/nvim/os/env.c | |
parent | 6160973f36b532b6f9ff2cd7c20958fd791f2e2a (diff) | |
download | rneovim-4503cb6b642e0b1ba8157154af6a220387e607f0.tar.gz rneovim-4503cb6b642e0b1ba8157154af6a220387e607f0.tar.bz2 rneovim-4503cb6b642e0b1ba8157154af6a220387e607f0.zip |
vim-patch:8.2.4750: small pieces of dead code (#18113)
Problem: Small pieces of dead code.
Solution: Remove the dead code. (Goc Dundar, closes vim/vim#10190) Rename the
qftf_cb struct member to avoid confusion.
https://github.com/vim/vim/commit/b836658a04ee5456deca2ee523de9efe51252da3
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r-- | src/nvim/os/env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index b738d36234..e958a39ad2 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -715,7 +715,7 @@ void expand_env_esc(char_u *restrict srcp, char_u *restrict dst, int dstlen, boo int c = (int)STRLEN(var); // if var[] ends in a path separator and tail[] starts // with it, skip a character - if (*var != NUL && after_pathsep((char *)dst, (char *)dst + c) + if (after_pathsep((char *)dst, (char *)dst + c) #if defined(BACKSLASH_IN_FILENAME) && dst[-1] != ':' #endif |