fixed crash in the text parser (amb718)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401266
This commit is contained in:
David Anderson 2007-08-03 11:44:51 +00:00
parent 70f22ab3ab
commit ccaa7c95f2

View File

@ -216,7 +216,10 @@ const char *FixupString(StringInfo &data)
}
}
*(data.end) = '\0';
if (data.end)
{
*(data.end) = '\0';
}
return data.ptr;
}