lkml.org 
[lkml]   [1997]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject2.1.21-patch_drivers_char-1
Date
Remove warnings about "might be used uninitialised".

diff -ur linux-2.1.21.orig/drivers/char/vc_screen.c linux/drivers/char/vc_screen.c
--- linux-2.1.21.orig/drivers/char/vc_screen.c Sat Dec 14 01:04:14 1996
+++ linux/drivers/char/vc_screen.c Wed Jan 15 13:49:11 1997
@@ -98,7 +98,7 @@
unsigned int currcons = MINOR(inode->i_rdev);
int viewed, attr, size, read;
char *buf0;
- unsigned short *org;
+ unsigned short *org = NULL; /* stop gcc complaining "might not be set" */

attr = (currcons & 128);
currcons = (currcons & 127);
@@ -159,7 +159,7 @@
unsigned int currcons = MINOR(inode->i_rdev);
int viewed, attr, size, written;
const char *buf0;
- unsigned short *org;
+ unsigned short *org = NULL; /* stop gcc complaining "might not be set" */

attr = (currcons & 128);
currcons = (currcons & 127);


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.039 / U:2.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site