X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fexec.c;h=511977f57031deedf2fa448fd760ce68cf05a005;hb=3a42e9d0622736d6ad84c37a2d4f4f54a0c30469;hp=639f56f1349ec22864579ccc0677014ddd1c63e6;hpb=e1e9e218c189882084a89fdee655a0a523efbaf8;p=binutils-gdb.git diff --git a/gdb/exec.c b/gdb/exec.c index 639f56f1349..511977f5703 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -1,5 +1,6 @@ /* Work with executable files, for GDB. - Copyright 1988, 1989, 1991, 1992, 1993, 1994, 1997, 1998, 2001 + Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, + 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of GDB. @@ -485,7 +486,7 @@ xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, struct section_table *p; CORE_ADDR nextsectaddr, memend; boolean (*xfer_fn) (bfd *, sec_ptr, PTR, file_ptr, bfd_size_type); - asection *section; + asection *section = NULL; if (len <= 0) internal_error (__FILE__, __LINE__, "failed internal consistency check");