diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/symfile.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 03b8712..db4e0b1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-01-29 Joel Brobecker <brobecker@adacore.com> (tiny patch) + + * symfile.c (unmap_overlay_command): Initialize sec to NULL. + 2015-01-27 Doug Evans <dje@google.com> * NEWS: Mention gdb.Objfile.username. diff --git a/gdb/symfile.c b/gdb/symfile.c index d55e361..86a758a 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -3439,7 +3439,7 @@ static void unmap_overlay_command (char *args, int from_tty) { struct objfile *objfile; - struct obj_section *sec; + struct obj_section *sec = NULL; if (!overlay_debugging) error (_("Overlay debugging not enabled. " |