From 773bdd41ec19c9909e979c4580cf098d71d168d7 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 16 Apr 2019 19:57:44 +0200 Subject: options: avoid using empty 'shadafile' References https://github.com/neovim/neovim/pull/9907 Fixes https://github.com/neovim/neovim/issues/9912 --- src/nvim/shada.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit