mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 23:36:23 -05:00
cppcheck: The scope of the variable 'bp' can be reduced.
This commit is contained in:
parent
ef7207b421
commit
a7c34c747d
3
buffer.c
3
buffer.c
@ -269,12 +269,13 @@ ask:
|
|||||||
int listbuffers(int f, int n)
|
int listbuffers(int f, int n)
|
||||||
{
|
{
|
||||||
struct window *wp;
|
struct window *wp;
|
||||||
struct buffer *bp;
|
|
||||||
int s;
|
int s;
|
||||||
|
|
||||||
if ((s = makelist(f)) != TRUE)
|
if ((s = makelist(f)) != TRUE)
|
||||||
return s;
|
return s;
|
||||||
if (blistp->b_nwnd == 0) { /* Not on screen yet. */
|
if (blistp->b_nwnd == 0) { /* Not on screen yet. */
|
||||||
|
struct buffer *bp ;
|
||||||
|
|
||||||
if ((wp = wpopup()) == NULL)
|
if ((wp = wpopup()) == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
bp = wp->w_bufp;
|
bp = wp->w_bufp;
|
||||||
|
Loading…
Reference in New Issue
Block a user