[PATCH] Fix real bugs uncovered by -Wno-uninitialized removal 2

From: Anton Blanchard
Date: Sat Sep 11 2004 - 19:02:19 EST



Another real bug.

Signed-off-by: Anton Blanchard <anton@xxxxxxxxx>

===== drivers/char/hvc_console.c 1.25 vs edited =====
--- 1.25/drivers/char/hvc_console.c Tue Aug 31 18:09:37 2004
+++ edited/drivers/char/hvc_console.c Sun Sep 12 09:44:26 2004
@@ -801,7 +801,7 @@
void hvc_console_print(struct console *co, const char *b, unsigned count)
{
char c[16] __ALIGNED__;
- unsigned i, n = 0;
+ unsigned i = 0, n = 0;
int r, donecr = 0;

/* Console access attempt outside of acceptable console range. */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/