Commit 5e7910c3 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

dash: Fixing a crash with invalid XML documents.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 0290575b
......@@ -71,7 +71,7 @@ Node* DOMParser::processNode ()
{
const char *data;
int type = xml_ReaderNextNode(this->vlc_reader, &data);
if(type != XML_READER_TEXT && type != XML_READER_NONE && type != XML_READER_ENDELEM)
if(type != -1 && type != XML_READER_TEXT && type != XML_READER_NONE && type != XML_READER_ENDELEM)
{
Node *node = new Node();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment