diff options
author | Daniil Zhukov <dmzhukov@outlook.com> | 2024-01-27 23:00:24 +0400 |
---|---|---|
committer | Daniil Zhukov <dmzhukov@outlook.com> | 2024-01-27 23:00:24 +0400 |
commit | 9d48266bed96d3ed9c7edf45e3b5fb8a9d0fda87 (patch) | |
tree | 00f0796c706521b3f8cafd378a7d8c3d24cbfd20 /test/functional/lua/help_spec.lua | |
parent | 6f49ed58c3d87ed8632ac84822173811a1a6ee3f (diff) | |
download | rneovim-9d48266bed96d3ed9c7edf45e3b5fb8a9d0fda87.tar.gz rneovim-9d48266bed96d3ed9c7edf45e3b5fb8a9d0fda87.tar.bz2 rneovim-9d48266bed96d3ed9c7edf45e3b5fb8a9d0fda87.zip |
fix(coverity/471380): null dereference in get_local_additions()
strrchr returns null pointer if '.' is not present in file name. Notice
that filenames are filtered to match "doc/*.??[tx]" pattern earlier so
we shouldn't expect null pointer here. However later in code strrchr
return value is checked so it seems better and more consistent to do the
same here too.
Diffstat (limited to 'test/functional/lua/help_spec.lua')
0 files changed, 0 insertions, 0 deletions