Skip to content

Commit

Permalink
uemacs: buffer.c: Fix uninitialized struct warning.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tfarina authored and torvalds committed Nov 28, 2010
1 parent ebd4f2f commit dff382d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buffer.c
Expand Up @@ -42,8 +42,8 @@ int usebuffer(int f, int n)
*/
int nextbuffer(int f, int n)
{
struct buffer *bp; /* eligable buffer to switch to */
struct buffer *bbp; /* eligable buffer to switch to */
struct buffer *bp = NULL; /* eligable buffer to switch to */
struct buffer *bbp; /* eligable buffer to switch to */

/* make sure the arg is legit */
if (f == FALSE)
Expand Down

0 comments on commit dff382d

Please sign in to comment.