mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
fix(coverity): use xstrndup() instead of vim_strsave() (#18363)
This commit is contained in:
@@ -1647,9 +1647,7 @@ int nlua_expand_pat(expand_T *xp, char_u *pat, int *num_results, char_u ***resul
|
||||
goto cleanup_array;
|
||||
}
|
||||
|
||||
GA_APPEND(char_u *,
|
||||
&result_array,
|
||||
vim_strsave((char_u *)v.data.string.data));
|
||||
GA_APPEND(char_u *, &result_array, (char_u *)string_to_cstr(v.data.string));
|
||||
}
|
||||
|
||||
xp->xp_pattern += prefix_len;
|
||||
|
Reference in New Issue
Block a user