diff options
author | James Tirta Halim <tirtajames45@gmail.com> | 2024-06-03 11:10:30 +0700 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-06-04 09:42:19 +0100 |
commit | 200e7ad1578619e78c664bd0c6be024168433412 (patch) | |
tree | c2387df2811637efb1f743693ed6b8ca172aeb74 /src/nvim/lua/secure.c | |
parent | 4b3845be2e497f96f855782d52dd1d02a4cabb6f (diff) | |
download | rneovim-200e7ad1578619e78c664bd0c6be024168433412.tar.gz rneovim-200e7ad1578619e78c664bd0c6be024168433412.tar.bz2 rneovim-200e7ad1578619e78c664bd0c6be024168433412.zip |
fixup: apply the change on more files
Diffstat (limited to 'src/nvim/lua/secure.c')
-rw-r--r-- | src/nvim/lua/secure.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/lua/secure.c b/src/nvim/lua/secure.c index a84d6c4d65..61277949c4 100644 --- a/src/nvim/lua/secure.c +++ b/src/nvim/lua/secure.c @@ -104,12 +104,12 @@ void ex_trust(exarg_T *eap) action = "deny"; } else if (strcmp(arg1, "++remove") == 0) { action = "remove"; - } else if (*arg1 != '\0') { + } else if (*arg1 != NUL) { semsg(e_invarg2, arg1); goto theend; } - if (path[0] == '\0') { + if (path[0] == NUL) { path = NULL; } |