2012-07-26 Teresa Johnson <tejohnson@google.com>
authorCary Coutant <ccoutant@google.com>
Thu, 26 Jul 2012 18:20:39 +0000 (18:20 +0000)
committerCary Coutant <ccoutant@google.com>
Thu, 26 Jul 2012 18:20:39 +0000 (18:20 +0000)
* bfd/dwarf2.c (find_line): Initialize discriminator_ptr
if it is non-NULL.

bfd/ChangeLog
bfd/dwarf2.c

index d350f0cdd50bbda7a2772eb4f5022fab2764b89a..96b8e51d07c44674d4c575a4ea575c0d60a130f2 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-26  Teresa Johnson  <tejohnson@google.com>
+
+       * bfd/dwarf2.c (find_line): Initialize discriminator_ptr
+       if it is non-NULL.
+
 2012-07-26  Meador Inge  <meadori@codesourcery.com>
            Nick Clifton  <nickc@redhat.com>
 
index 069d6141a7717f608f42cd7897f22d6d4ea70979..a4dc52b278c8aa9f1732bf5f6a3cf236530c48c8 100644 (file)
@@ -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))