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:
Eliseo Martínez 2014-11-10 00:15:24 +01:00
parent 4e02a1bf46
commit 6d057a2ca5

View File

@ -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