cppcheck: The scope of the variable 'bp' can be reduced.

This commit is contained in:
Renaud 2016-05-19 11:26:07 +08:00
parent ef7207b421
commit a7c34c747d
1 changed files with 2 additions and 1 deletions

View File

@ -269,12 +269,13 @@ ask:
int listbuffers(int f, int n)
{
struct window *wp;
struct buffer *bp;
int s;
if ((s = makelist(f)) != TRUE)
return s;
if (blistp->b_nwnd == 0) { /* Not on screen yet. */
struct buffer *bp ;
if ((wp = wpopup()) == NULL)
return FALSE;
bp = wp->w_bufp;