Don't do strlen on ui->compdir if it is NULL. Duh.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3920
This commit is contained in:
Julian Seward
2005-06-17 13:06:53 +00:00
parent fbf54ace13
commit e40e2c0cee

View 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 */)
{