mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Fix warnings: fileio.c: aucmd_prepbuf(): Np dereference: FP.
Problem : Dereference of null pointer @ 6219. Diagnostic : False positive. Rationale : Problem occurs if `aucmd_win` is NULL after `win_alloc_aucmd_win()`, which cannot happen since it uses new memory functions. So, this is a leftover since OOM refactorization. Resolution : Remove dead code.
This commit is contained in:
parent
4e02a1bf46
commit
6d057a2ca5
@ -6191,12 +6191,9 @@ aucmd_prepbuf (
|
||||
}
|
||||
}
|
||||
|
||||
/* Allocate "aucmd_win" when needed. If this fails (out of memory) fall
|
||||
* back to using the current window. */
|
||||
/* Allocate "aucmd_win" when needed. */
|
||||
if (win == NULL && aucmd_win == NULL) {
|
||||
win_alloc_aucmd_win();
|
||||
if (aucmd_win == NULL)
|
||||
win = curwin;
|
||||
}
|
||||
if (win == NULL && aucmd_win_used)
|
||||
/* Strange recursive autocommand, fall back to using the current
|
||||
|
Loading…
Reference in New Issue
Block a user