aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cmdexpand.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-05-19 05:38:31 +0800
committerGitHub <noreply@github.com>2024-05-19 05:38:31 +0800
commit63e3a63d2fcd72c40ed2b4128a232c0931ef21cf (patch)
treed439e9ceae32591995fb8fd123ee6df996f17b25 /src/nvim/cmdexpand.c
parent48c2ad5d2d79a314502b11c868045d28bc23efab (diff)
downloadrneovim-63e3a63d2fcd72c40ed2b4128a232c0931ef21cf.tar.gz
rneovim-63e3a63d2fcd72c40ed2b4128a232c0931ef21cf.tar.bz2
rneovim-63e3a63d2fcd72c40ed2b4128a232c0931ef21cf.zip
refactor(path.c): add nonnull attributes (#28829)
This possibly fixes the coverity warning.
Diffstat (limited to 'src/nvim/cmdexpand.c')
-rw-r--r--src/nvim/cmdexpand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c
index 49944aa895..808df44941 100644
--- a/src/nvim/cmdexpand.c
+++ b/src/nvim/cmdexpand.c
@@ -3242,6 +3242,7 @@ static int ExpandUserLua(expand_T *xp, int *num_file, char ***file)
/// Adds matches to `ga`.
/// If "dirs" is true only expand directory names.
void globpath(char *path, char *file, garray_T *ga, int expand_options, bool dirs)
+ FUNC_ATTR_NONNULL_ALL
{
expand_T xpc;
ExpandInit(&xpc);