diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-08 22:48:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-08 22:48:17 -0500 |
commit | 4e6f00dd29332ce549006e8df1b1392ed4209954 (patch) | |
tree | 0c5671c8e96454a752c160f6778a088186c6cb31 /src/nvim/extmark.c | |
parent | 94062831b38941a3516bb3bdc8c20486a91fd900 (diff) | |
download | rneovim-4e6f00dd29332ce549006e8df1b1392ed4209954.tar.gz rneovim-4e6f00dd29332ce549006e8df1b1392ed4209954.tar.bz2 rneovim-4e6f00dd29332ce549006e8df1b1392ed4209954.zip |
gcc/analyzer: fix false positives for NULL (#13248)
Close https://github.com/neovim/neovim/issues/13158
Diffstat (limited to 'src/nvim/extmark.c')
-rw-r--r-- | src/nvim/extmark.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c index 413ea4116a..ba685b158e 100644 --- a/src/nvim/extmark.c +++ b/src/nvim/extmark.c @@ -74,6 +74,7 @@ uint64_t extmark_set(buf_T *buf, uint64_t ns_id, uint64_t id, Decoration *decor, ExtmarkOp op) { ExtmarkNs *ns = buf_ns_ref(buf, ns_id, true); + assert(ns != NULL); mtpos_t old_pos; uint64_t mark = 0; |