diff options
author | James McCoy <jamessan@jamessan.com> | 2017-04-09 01:17:15 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-04-09 01:17:15 -0400 |
commit | 06a96df510e1fa8d77d21a8120e97342d04be15f (patch) | |
tree | 6ece9101fc5c2296bf4972d494b8e7730e109a0f | |
parent | 4af6c60826b4cb939fd9b7fe67a0b03e86d72bfc (diff) | |
download | rneovim-06a96df510e1fa8d77d21a8120e97342d04be15f.tar.gz rneovim-06a96df510e1fa8d77d21a8120e97342d04be15f.tar.bz2 rneovim-06a96df510e1fa8d77d21a8120e97342d04be15f.zip |
lint
-rw-r--r-- | src/nvim/spellfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c index a6cee59795..bbef1f5032 100644 --- a/src/nvim/spellfile.c +++ b/src/nvim/spellfile.c @@ -1571,8 +1571,9 @@ spell_read_tree ( // The tree size was computed when writing the file, so that we can // allocate it as one long block. <nodecount> long len = get4c(fd); - if (len < 0) + if (len < 0) { return SP_TRUNCERROR; + } if ((size_t)len >= SIZE_MAX / sizeof(int)) { // Invalid length, multiply with sizeof(int) would overflow. return SP_FORMERROR; |