summaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index c2b97e4c97b..511977f5703 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -486,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");