Hi
Attached patch fixes a couple places where NUL
is used and where NULL was meant to be used.
It's harmless anyway.
Regards
Dominique
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 5b6a44a..cb58f24 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -6908,7 +6908,7 @@ fix_help_buffer(void)
continue;
e1 = vim_strrchr(t1, '.');
e2 = vim_strrchr(gettail(f2), '.');
- if (e1 == NUL || e2 == NUL)
+ if (e1 == NULL || e2 == NULL)
continue;
if (fnamecmp(e1, ".txt") != 0
&& fnamecmp(e1, fname + 4) != 0)
@@ -8205,7 +8205,7 @@ set_context_in_sign_cmd(expand_T *xp, char_u *arg)
/* :sign define {name} {args}... {last}=
* | |
* last p */
- if (p == NUL)
+ if (p == NULL)
{
/* Expand last argument name (before equal sign). */
xp->xp_pattern = last;
diff --git a/src/json.c b/src/json.c
index 0132df6..36d47aa 100644
--- a/src/json.c
+++ b/src/json.c
@@ -861,7 +861,7 @@ json_decode_item(js_read_T *reader, typval_T *res, int options)
break;
}
- if (res != NUL)
+ if (res != NULL)
{
res->v_type = VAR_SPECIAL;
res->vval.v_number = VVAL_NONE;