Messages in this thread Patch in this message |  | | From | Keith Owens <> | Subject | 2.1.21-patch_drivers_char-1 | Date | Wed, 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);
|  |