mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
lib/xmltree/xmlparse.cpp: fix (workaround?) for crash while parsing invalid saved xml
Origin commit data
------------------
Branch: ni/coolstream
Commit: c8b4d271f9
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-05-14 (Mon, 14 May 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -392,7 +392,8 @@ long XML_Parser::GetCurrentByteIndex()
|
||||
|
||||
int XML_Parser::GetCurrentLineNumber()
|
||||
{
|
||||
if (eventPtr)
|
||||
/* at EOF positionPtr point to input, while eventPtr not updated -- focus */
|
||||
if (eventPtr && (positionPtr < eventPtr))
|
||||
{
|
||||
XmlUpdatePosition(encoding, positionPtr, eventPtr, &position);
|
||||
positionPtr=eventPtr;
|
||||
|
Reference in New Issue
Block a user