aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-07-26 18:20:39 +0000
committerCary Coutant <ccoutant@google.com>2012-07-26 18:20:39 +0000
commitf725daa870859ce411549931f9d7fe36e8371a07 (patch)
tree70cc8585241354e0f27528f9cb67f19d9001c61d /bfd/dwarf2.c
parent5ba19b4c7a5c258c0fdde17e8a89b7032644eb4b (diff)
downloadgdb-f725daa870859ce411549931f9d7fe36e8371a07.zip
gdb-f725daa870859ce411549931f9d7fe36e8371a07.tar.gz
gdb-f725daa870859ce411549931f9d7fe36e8371a07.tar.bz2
2012-07-26 Teresa Johnson <tejohnson@google.com>
* bfd/dwarf2.c (find_line): Initialize discriminator_ptr if it is non-NULL.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 069d614..a4dc52b 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -3344,6 +3344,8 @@ find_line (bfd *abfd,
if (functionname_ptr != NULL)
*functionname_ptr = NULL;
*linenumber_ptr = 0;
+ if (discriminator_ptr)
+ *discriminator_ptr = 0;
if (! _bfd_dwarf2_slurp_debug_info (abfd, NULL,
debug_sections, symbols, pinfo))