diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-08 12:35:50 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-10 22:19:49 -0400 |
commit | 2ed7cda8cd0fe7dd29fa7879a7bf6df9256d38cd (patch) | |
tree | c2a33c7597b8122aeae26b82fa759d11efa3aa84 /src | |
parent | b8a338ee6a51c64e15ef3c66bcc67320e53cd6aa (diff) | |
download | rneovim-2ed7cda8cd0fe7dd29fa7879a7bf6df9256d38cd.tar.gz rneovim-2ed7cda8cd0fe7dd29fa7879a7bf6df9256d38cd.tar.bz2 rneovim-2ed7cda8cd0fe7dd29fa7879a7bf6df9256d38cd.zip |
spell: assert nonull pointers
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/spell.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 40bb882948..760ac2e6c1 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -2305,6 +2305,7 @@ static int find_region(char_u *rp, char_u *region) /// /// @returns Case type of word int captype(char_u *word, char_u *end) + FUNC_ATTR_NONNULL_ARG(1) { char_u *p; int c; @@ -2355,6 +2356,7 @@ int captype(char_u *word, char_u *end) // capital. So that make_case_word() can turn WOrd into Word. // Add ALLCAP for "WOrD". static int badword_captype(char_u *word, char_u *end) + FUNC_ATTR_NONNULL_ALL { int flags = captype(word, end); int c; |