aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-11-28 18:57:12 -0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-11-28 13:14:31 -0800
commitdff382de1d39be7bf41d1fd1fb5e7bbf15023888 (patch)
tree81eb8becf75324683d790181d9456201716a9a81
parentebd4f2f1eb6b0a032273b8adceacd1155dbc9c67 (diff)
downloaduemacs-dff382de1d39be7bf41d1fd1fb5e7bbf15023888.tar.gz
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>
-rw-r--r--buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/buffer.c b/buffer.c
index 2555898..9aaf530 100644
--- a/buffer.c
+++ b/buffer.c
@@ -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)