mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
Revert "xmlparse.cpp: add condition to avoid possible crash"
This reverts commit 40633dcfb54c07da8a90eae87e316a4a9cffa5a0.
Needs another solution. This Commtit breaks channel tuning without
configure option --enable-pugixml
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3c9ae32bb9
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-01-04 (Sat, 04 Jan 2020)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user