diff options
author | kylo252 <59826753+kylo252@users.noreply.github.com> | 2022-05-26 04:49:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 10:49:25 +0800 |
commit | 7b952793d5c46e862a9cdec3d6ac4762370296ed (patch) | |
tree | 987ea7d0174b4df4a6aa19356237b08308b0e744 /src/nvim/edit.c | |
parent | f246a929e7abec4aba00ceb68b1492f3be5877dc (diff) | |
download | rneovim-7b952793d5c46e862a9cdec3d6ac4762370296ed.tar.gz rneovim-7b952793d5c46e862a9cdec3d6ac4762370296ed.tar.bz2 rneovim-7b952793d5c46e862a9cdec3d6ac4762370296ed.zip |
refactor: missing parenthesis may cause unexpected problems (#17443)
related vim-8.2.{4402,4639}
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index eebdf3f0d6..41fa34c31e 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -2351,9 +2351,9 @@ static int ins_compl_add(char_u *const str, int len, char_u *const fname, } #define FREE_CPTEXT(cptext, cptext_allocated) \ do { \ - if (cptext != NULL && cptext_allocated) { \ + if ((cptext) != NULL && (cptext_allocated)) { \ for (size_t i = 0; i < CPT_COUNT; i++) { \ - xfree(cptext[i]); \ + xfree((cptext)[i]); \ } \ } \ } while (0) |