gcc/analyzer: fix false positives for NULL (#13248)

Close https://github.com/neovim/neovim/issues/13158
This commit is contained in:
Jan Edmund Lazo
2020-11-08 22:48:17 -05:00
committed by GitHub
parent 94062831b3
commit 4e6f00dd29
4 changed files with 15 additions and 8 deletions

View File

@@ -2687,6 +2687,9 @@ void nvim__screenshot(String path)
static void clear_provider(DecorProvider *p)
{
if (p == NULL) {
return;
}
NLUA_CLEAR_REF(p->redraw_start);
NLUA_CLEAR_REF(p->redraw_buf);
NLUA_CLEAR_REF(p->redraw_win);