]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't do strlen on ui->compdir if it is NULL. Duh.
authorJulian Seward <jseward@acm.org>
Fri, 17 Jun 2005 13:06:53 +0000 (13:06 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 17 Jun 2005 13:06:53 +0000 (13:06 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3920

coregrind/m_debuginfo/dwarf.c

index 714a278bb565685c35b568773a0591e37ab127e5..3b89dbef413bc12872a72c3fa244f0cfee69ff7b 100644 (file)
@@ -508,6 +508,8 @@ void read_dwarf2_lineblock ( SegInfo*  si,
 
       if (*data != '/' 
           /* not an absolute path */
+          && ui->compdir != NULL
+          /* actually got something sensible for compdir */
           && VG_(strlen)(ui->compdir) + VG_(strlen)(data) + 5/*paranoia*/ < NBUF
           /* it's short enough to concatenate */) 
       {