Skip to content

Commit 7756e74

Browse files
committed
patch 8.0.0046
Problem: Using NUL instead of NULL. Solution: Change to NULL. (Dominique Pelle)
1 parent bb09ceb commit 7756e74

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/ex_cmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6908,7 +6908,7 @@ fix_help_buffer(void)
69086908
continue;
69096909
e1 = vim_strrchr(t1, '.');
69106910
e2 = vim_strrchr(gettail(f2), '.');
6911-
if (e1 == NUL || e2 == NUL)
6911+
if (e1 == NULL || e2 == NULL)
69126912
continue;
69136913
if (fnamecmp(e1, ".txt") != 0
69146914
&& fnamecmp(e1, fname + 4) != 0)
@@ -8205,7 +8205,7 @@ set_context_in_sign_cmd(expand_T *xp, char_u *arg)
82058205
/* :sign define {name} {args}... {last}=
82068206
* | |
82078207
* last p */
8208-
if (p == NUL)
8208+
if (p == NULL)
82098209
{
82108210
/* Expand last argument name (before equal sign). */
82118211
xp->xp_pattern = last;

src/json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ json_decode_item(js_read_T *reader, typval_T *res, int options)
861861
break;
862862
}
863863

864-
if (res != NUL)
864+
if (res != NULL)
865865
{
866866
res->v_type = VAR_SPECIAL;
867867
res->vval.v_number = VVAL_NONE;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
46,
767769
/**/
768770
45,
769771
/**/

0 commit comments

Comments
 (0)