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/cmdexpand.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/cmdexpand.c')
-rw-r--r-- | src/nvim/cmdexpand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c index bb85620ce6..0b88e2be11 100644 --- a/src/nvim/cmdexpand.c +++ b/src/nvim/cmdexpand.c @@ -3075,7 +3075,7 @@ static void *call_user_expand_func(user_expand_func_T user_expand_func, expand_T typval_T args[4]; const sctx_T save_current_sctx = current_sctx; - if (xp->xp_arg == NULL || xp->xp_arg[0] == '\0' || xp->xp_line == NULL) { + if (xp->xp_arg == NULL || xp->xp_arg[0] == NUL || xp->xp_line == NULL) { return NULL; } |