Revert "xmlparse.cpp: add condition to avoid possible crash"

This reverts commit 40633dcfb5.

Needs another solution. This Commtit breaks channel tuning without
configure option --enable-pugixml
This commit is contained in:
2020-01-02 19:02:18 +01:00
parent a172e2db6c
commit 1d76394de6

View File

@@ -2732,9 +2732,8 @@ static int poolGrow(STRING_POOL *pool)
tem->next=pool->blocks;
pool->blocks=tem;
if (!pool->start) return 0; //FIXME: hack: pool->start seems to be a null pointer in some constellations, memmove don't like such for parameter 2
memmove(tem->s, pool->start, (pool->ptr-pool->start)*sizeof(XML_Char));
memmove(tem->s, pool->start, (pool->ptr-pool->start)*sizeof(XML_Char)); //FIXME: pool->start seems to be a null pointer in some constellations, eg. with disabled pugixml, memmove don't like NULL-pointer for parameter 2
pool->ptr=tem->s+(pool->ptr-pool->start);
pool->start=tem->s;