summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2008-05-21 10:59:53 +1000
committerSimon Horman <horms@verge.net.au>2008-05-21 10:59:53 +1000
commit633473383333272f9a79b69cd1401ccafcb4a43b (patch)
tree41babac839c59fd650c7d221d4e2165c7c950cd0
parentdad9f01c556c69c432f3b145e2947dcd5e7626ca (diff)
PPC64: Initialise modified_cmdline in elf_ppc64_load()
This removes a minor compiler warning. gcc (GCC) 4.2.3 (Debian 4.2.3-2) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. kexec/arch/ppc64/kexec-elf-ppc64.c: In function 'elf_ppc64_load': kexec/arch/ppc64/kexec-elf-ppc64.c:79: warning: 'modified_cmdline' may be used uninitialized in this function Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/ppc64/kexec-elf-ppc64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/ppc64/kexec-elf-ppc64.c b/kexec/arch/ppc64/kexec-elf-ppc64.c
index 38c5f72..82bb32f 100644
--- a/kexec/arch/ppc64/kexec-elf-ppc64.c
+++ b/kexec/arch/ppc64/kexec-elf-ppc64.c
@@ -76,7 +76,7 @@ int elf_ppc64_load(int argc, char **argv, const char *buf, off_t len,
struct kexec_info *info)
{
struct mem_ehdr ehdr;
- char *cmdline, *modified_cmdline;
+ char *cmdline, *modified_cmdline = NULL;
const char *devicetreeblob;
int cmdline_len, modified_cmdline_len;
uint64_t max_addr, hole_addr;