diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2019-04-16 19:57:44 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2019-04-16 20:00:32 +0200 |
commit | 773bdd41ec19c9909e979c4580cf098d71d168d7 (patch) | |
tree | f533b3f58f21c7cf67ef637794dca2445bea48ec | |
parent | aa82f8b88fe82077740894dd387801384e0558b6 (diff) | |
download | rneovim-773bdd41ec19c9909e979c4580cf098d71d168d7.tar.gz rneovim-773bdd41ec19c9909e979c4580cf098d71d168d7.tar.bz2 rneovim-773bdd41ec19c9909e979c4580cf098d71d168d7.zip |
options: avoid using empty 'shadafile'
References https://github.com/neovim/neovim/pull/9907
Fixes https://github.com/neovim/neovim/issues/9912
-rw-r--r-- | src/nvim/shada.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c index 6bbf91e0f9..eace4a524c 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -1542,7 +1542,7 @@ static char *shada_filename(const char *file) FUNC_ATTR_MALLOC FUNC_ATTR_NONNULL_RET FUNC_ATTR_WARN_UNUSED_RESULT { if (file == NULL || *file == NUL) { - if (p_shadafile != NULL) { + if (p_shadafile != NULL && *p_shadafile != NUL) { file = p_shadafile; } else { if ((file = find_shada_parameter('n')) == NULL || *file == NUL) { |