mirror of
https://github.com/neovim/neovim
synced 2025-07-31 02:42:18 +00:00
options: avoid using empty 'shadafile'
References https://github.com/neovim/neovim/pull/9907 Fixes https://github.com/neovim/neovim/issues/9912
This commit is contained in:
@ -1542,7 +1542,7 @@ static char *shada_filename(const char *file)
|
|||||||
FUNC_ATTR_MALLOC FUNC_ATTR_NONNULL_RET FUNC_ATTR_WARN_UNUSED_RESULT
|
FUNC_ATTR_MALLOC FUNC_ATTR_NONNULL_RET FUNC_ATTR_WARN_UNUSED_RESULT
|
||||||
{
|
{
|
||||||
if (file == NULL || *file == NUL) {
|
if (file == NULL || *file == NUL) {
|
||||||
if (p_shadafile != NULL) {
|
if (p_shadafile != NULL && *p_shadafile != NUL) {
|
||||||
file = p_shadafile;
|
file = p_shadafile;
|
||||||
} else {
|
} else {
|
||||||
if ((file = find_shada_parameter('n')) == NULL || *file == NUL) {
|
if ((file = find_shada_parameter('n')) == NULL || *file == NUL) {
|
||||||
|
Reference in New Issue
Block a user