diff options
| author | James McCoy <jamessan@jamessan.com> | 2017-05-13 07:51:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-13 07:51:01 -0400 |
| commit | ac47f8a50691e6ce99c54712e5c984db8b1f079e (patch) | |
| tree | f6863f960fe46983b5efb2a84db0bed6f8c80b75 /src/nvim/ex_cmds.c | |
| parent | ae3d5e5ecc32f4ca6a29976880f225a716bad44b (diff) | |
| parent | f3a508b4a3c13cc755b355976c6e0f2fae7e1645 (diff) | |
| download | rneovim-ac47f8a50691e6ce99c54712e5c984db8b1f079e.tar.gz rneovim-ac47f8a50691e6ce99c54712e5c984db8b1f079e.tar.bz2 rneovim-ac47f8a50691e6ce99c54712e5c984db8b1f079e.zip | |
Merge pull request #6514 from jamessan/gcc-7-fixes
Fix GCC 7 issues
Diffstat (limited to 'src/nvim/ex_cmds.c')
| -rw-r--r-- | src/nvim/ex_cmds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 018a228843..a528a65abb 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -4878,8 +4878,9 @@ void fix_help_buffer(void) continue; e1 = vim_strrchr(t1, '.'); e2 = vim_strrchr(path_tail(f2), '.'); - if (e1 == NUL || e2 == NUL) + if (e1 == NULL || e2 == NULL) { continue; + } if (fnamecmp(e1, ".txt") != 0 && fnamecmp(e1, fname + 4) != 0) { /* Not .txt and not .abx, remove it. */ @@ -5949,9 +5950,8 @@ void set_context_in_sign_cmd(expand_T *xp, char_u *arg) // :sign define {name} {args}... {last}= // | | // last p - if (p == NUL) - { - /* Expand last argument name (before equal sign). */ + if (p == NULL) { + // Expand last argument name (before equal sign). xp->xp_pattern = last; switch (cmd_idx) { |