refactor(path.c): add nonnull attributes (#28829)

This possibly fixes the coverity warning.
This commit is contained in:
zeertzjq
2024-05-19 05:38:31 +08:00
committed by GitHub
parent 48c2ad5d2d
commit 63e3a63d2f
2 changed files with 32 additions and 4 deletions

View File

@@ -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);