From 1f84ea061dc111ec1a99c8cb24fcbf00578efdbd Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 19 Jun 2020 22:41:29 -0400 Subject: spell_load_file: Add missing "goto endFAIL" if spellfile is not readable --- src/nvim/spellfile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/spellfile.c') 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; -- cgit