1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-17 23:06:25 -05:00

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

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;