diff src/spellfile.c @ 21887:776c76599617 v8.2.1493

patch 8.2.1493: not enough test coverage for the spell file handling Commit: https://github.com/vim/vim/commit/fc2a47ffc425777704b329c9edbe21163bedf63c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 20 15:41:55 2020 +0200 patch 8.2.1493: not enough test coverage for the spell file handling Problem: Not enough test coverage for the spell file handling. Solution: Add spell file tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6728)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Aug 2020 15:45:04 +0200
parents 32f85b7d6504
children 11055d5b74a7
line wrap: on
line diff
--- a/src/spellfile.c
+++ b/src/spellfile.c
@@ -519,7 +519,7 @@ spell_load_file(
 		lp->sl_syllable = read_string(fd, len);	// <syllable>
 		if (lp->sl_syllable == NULL)
 		    goto endFAIL;
-		if (init_syl_tab(lp) == FAIL)
+		if (init_syl_tab(lp) != OK)
 		    goto endFAIL;
 		break;