mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 07:16:23 -05:00
uemacs: buffer.c: Fix uninitialized struct warning.
This fix the following warning: buffer.c: In function ‘nextbuffer’: buffer.c:45: warning: ‘bp’ may be used uninitialized in this function Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ebd4f2f1eb
commit
dff382de1d
4
buffer.c
4
buffer.c
@ -42,8 +42,8 @@ int usebuffer(int f, int n)
|
|||||||
*/
|
*/
|
||||||
int nextbuffer(int f, int n)
|
int nextbuffer(int f, int n)
|
||||||
{
|
{
|
||||||
struct buffer *bp; /* eligable buffer to switch to */
|
struct buffer *bp = NULL; /* eligable buffer to switch to */
|
||||||
struct buffer *bbp; /* eligable buffer to switch to */
|
struct buffer *bbp; /* eligable buffer to switch to */
|
||||||
|
|
||||||
/* make sure the arg is legit */
|
/* make sure the arg is legit */
|
||||||
if (f == FALSE)
|
if (f == FALSE)
|
||||||
|
Loading…
Reference in New Issue
Block a user