diff options
author | James Tirta Halim <tirtajames45@gmail.com> | 2024-06-03 11:00:20 +0700 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-06-04 09:42:19 +0100 |
commit | a18982cb839d7f05e32b1026bbd99b8aa34ad189 (patch) | |
tree | a2fcf7096210519d2f1397ab22b0200598350578 /src/nvim/help.c | |
parent | 2f5b8a009280eba995aecf67d1e8d99b7c72c51c (diff) | |
download | rneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.tar.gz rneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.tar.bz2 rneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.zip |
refactor: replace '\0' with NUL
Diffstat (limited to 'src/nvim/help.c')
-rw-r--r-- | src/nvim/help.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/help.c b/src/nvim/help.c index d28f195c00..0da846bb9f 100644 --- a/src/nvim/help.c +++ b/src/nvim/help.c @@ -958,8 +958,8 @@ static void helptags_one(char *dir, const char *ext, const char *tagfname, bool if (s == p2 && (p1 == IObuff || p1[-1] == ' ' || p1[-1] == '\t') && (vim_strchr(" \t\n\r", (uint8_t)s[1]) != NULL - || s[1] == '\0')) { - *p2 = '\0'; + || s[1] == NUL)) { + *p2 = NUL; p1++; size_t s_len = (size_t)(p2 - p1) + strlen(fname) + 2; s = xmalloc(s_len); |