summaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-31 16:44:19 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-31 16:44:19 +0200
commita9d52e3b7925ef119b5d0d9fca14faac634effb0 (patch)
tree151c52ad2e282b8e264aee2fc7af3db76d8c2071 /src/spell.c
parenta26559b553079c3959ee142a010b2e000c180323 (diff)
downloadvim-git-a9d52e3b7925ef119b5d0d9fca14faac634effb0.tar.gz
Fixes for coverity warnings.
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/spell.c b/src/spell.c
index 6d4d47ea2..30510ad27 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -9439,7 +9439,8 @@ spell_add_word(word, len, bad, idx, undo)
fseek(fd, fpos_next, SEEK_SET);
}
}
- fclose(fd);
+ if (fd != NULL)
+ fclose(fd);
}
}