diff options
-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) { |