mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
ex_cmds: Use NULL, not NUL, to check for strrchr failure
This commit is contained in:
@@ -4878,7 +4878,7 @@ void fix_help_buffer(void)
|
|||||||
continue;
|
continue;
|
||||||
e1 = vim_strrchr(t1, '.');
|
e1 = vim_strrchr(t1, '.');
|
||||||
e2 = vim_strrchr(path_tail(f2), '.');
|
e2 = vim_strrchr(path_tail(f2), '.');
|
||||||
if (e1 == NUL || e2 == NUL)
|
if (e1 == NULL || e2 == NULL)
|
||||||
continue;
|
continue;
|
||||||
if (fnamecmp(e1, ".txt") != 0
|
if (fnamecmp(e1, ".txt") != 0
|
||||||
&& fnamecmp(e1, fname + 4) != 0) {
|
&& fnamecmp(e1, fname + 4) != 0) {
|
||||||
@@ -5949,7 +5949,7 @@ void set_context_in_sign_cmd(expand_T *xp, char_u *arg)
|
|||||||
// :sign define {name} {args}... {last}=
|
// :sign define {name} {args}... {last}=
|
||||||
// | |
|
// | |
|
||||||
// last p
|
// last p
|
||||||
if (p == NUL)
|
if (p == NULL)
|
||||||
{
|
{
|
||||||
/* Expand last argument name (before equal sign). */
|
/* Expand last argument name (before equal sign). */
|
||||||
xp->xp_pattern = last;
|
xp->xp_pattern = last;
|
||||||
|
Reference in New Issue
Block a user