mirror of
https://github.com/neovim/neovim.git
synced 2025-11-15 23:01:24 +00:00
refactor: replace '\0' with NUL
This commit is contained in:
committed by
Lewis Russell
parent
2f5b8a0092
commit
a18982cb83
@@ -510,7 +510,7 @@ char *vim_findfile_stopdir(char *buf)
|
||||
while (*r_ptr != NUL && *r_ptr != ';') {
|
||||
if (r_ptr[0] == '\\' && r_ptr[1] == ';') {
|
||||
// Overwrite the escape char,
|
||||
// use strlen(r_ptr) to move the trailing '\0'.
|
||||
// use strlen(r_ptr) to move the trailing NUL.
|
||||
STRMOVE(r_ptr, r_ptr + 1);
|
||||
r_ptr++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user