Deal with empty pool in poolAppend

This commit is contained in:
James Clark 1998-02-08 07:58:42 +00:00
parent 51b263674a
commit eb791c7b7e

View File

@ -1504,6 +1504,8 @@ static
char *poolAppend(STRING_POOL *pool, const ENCODING *enc,
const char *ptr, const char *end)
{
if (!pool->ptr && !poolGrow(pool))
return 0;
for (;;) {
XmlConvert(enc, XML_UTF8_ENCODING, &ptr, end, &(pool->ptr), pool->end);
if (ptr == end)