diff options
author | Geoff Levand <geoff@infradead.org> | 2018-04-11 17:03:11 +0000 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2018-04-19 10:37:45 +0200 |
commit | 72c146c2058801b8d2c981c560ae12dcb57f8219 (patch) | |
tree | 6ee651ece89bce712f8534b03e554afe7fdc9bdc /purgatory | |
parent | 3f276f71f14d85a5c533ec2ac5f3880a1c748529 (diff) |
purgatory/ppc64: Fix uninitialized warning
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 <geoff@infradead.org>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory')
-rw-r--r-- | purgatory/arch/ppc64/console-ppc64.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |