* syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
authorAlan Modra <amodra@gmail.com>
Wed, 1 May 2002 07:36:39 +0000 (07:36 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 1 May 2002 07:36:39 +0000 (07:36 +0000)
file_name.

bfd/ChangeLog
bfd/syms.c

index 0e493dfe0a9e1982b73f86ed3bb25368145330be..d2fcd67398a17abec6caf48948585cd964fd9b2c 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
+       file_name.
+
 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
 
        * elf64-ppc.c (CROR_151515, CROR_313131): Define.
index 4309c0d94f884850430418c94c304a4250b8cfe5..01f7eee2cce17131088a1a1cd333a8c2072ad83d 100644 (file)
@@ -1297,7 +1297,8 @@ _bfd_stab_section_find_nearest_line (abfd, symbols, section, offset, pfound,
 
   *pfound = true;
 
-  if (IS_ABSOLUTE_PATH(file_name) || directory_name == NULL)
+  if (file_name == NULL || IS_ABSOLUTE_PATH (file_name)
+      || directory_name == NULL)
     *pfilename = file_name;
   else
     {