From 72c146c2058801b8d2c981c560ae12dcb57f8219 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Wed, 11 Apr 2018 17:03:11 +0000 Subject: purgatory/ppc64: Fix uninitialized warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes warnings like these when building kexec for powerpc (32 bit): console-ppc64.c: warning: ‘*((void *)&buff+8)’ may be used uninitialized Signed-off-by: Geoff Levand Signed-off-by: Simon Horman --- purgatory/arch/ppc64/console-ppc64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purgatory/arch/ppc64/console-ppc64.c b/purgatory/arch/ppc64/console-ppc64.c index b80183c..2403312 100644 --- a/purgatory/arch/ppc64/console-ppc64.c +++ b/purgatory/arch/ppc64/console-ppc64.c @@ -29,7 +29,7 @@ extern int debug; void putchar(int c) { - char buff[16]; + char buff[16] = ""; unsigned long *lbuf = (unsigned long *)buff; if (!debug) /* running on non pseries */ -- cgit