lkml.org 
[lkml]   [1997]   [Jan]   [15]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromKeith Owens <>
Subject2.1.21-patch_drivers_char-1
DateWed, 15 Jan 1997 18:22:11 +1100
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 12:38    [from the cache]
©2003-2008