summaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-07-26 18:20:38 +0000
committerCary Coutant <ccoutant@google.com>2012-07-26 18:20:38 +0000
commit1747a5f91d13749bde95a7ea65f0e80861ef4e5d (patch)
treebe5d3e7f0bb037a8c235c4b75695c76b7c271cd6 /bfd/dwarf2.c
parent3d2d227314d52027de68a88eeac1b73c91129022 (diff)
downloadbinutils-redhat-1747a5f91d13749bde95a7ea65f0e80861ef4e5d.tar.gz
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 069d6141a7..a4dc52b278 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))