aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-06-19 22:41:29 -0400
committerJames McCoy <jamessan@jamessan.com>2020-08-23 21:18:34 -0400
commit1f84ea061dc111ec1a99c8cb24fcbf00578efdbd (patch)
tree9f1058dc911cceee9621ed5b8fc6472e9e95f63a
parent75813af54267803bb3269b81f58d742200fccb41 (diff)
downloadrneovim-1f84ea061dc111ec1a99c8cb24fcbf00578efdbd.tar.gz
rneovim-1f84ea061dc111ec1a99c8cb24fcbf00578efdbd.tar.bz2
rneovim-1f84ea061dc111ec1a99c8cb24fcbf00578efdbd.zip
spell_load_file: Add missing "goto endFAIL" if spellfile is not readable
-rw-r--r--src/nvim/spellfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c
index 6b9348e55d..a7d26e2a8e 100644
--- a/src/nvim/spellfile.c
+++ b/src/nvim/spellfile.c
@@ -628,6 +628,7 @@ spell_load_file (
case SP_OTHERERROR: {
emsgf(_("E5042: Failed to read spell file %s: %s"),
fname, strerror(ferror(fd)));
+ goto endFAIL;
}
case 0: {
break;