blob: 38822287c61de35466cda95e2bdfdf781dcfd3d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
Bug: https://bugs.gentoo.org/617886
--- a/src/pengine/tinyxmlparser.cpp
+++ b/src/pengine/tinyxmlparser.cpp
@@ -326,14 +326,14 @@
if ( !p || !*p )
{
SetError( TIXML_ERROR_DOCUMENT_EMPTY );
- return false;
+ return NULL;
}
p = SkipWhiteSpace( p );
if ( !p )
{
SetError( TIXML_ERROR_DOCUMENT_EMPTY );
- return false;
+ return NULL;
}
while ( p && *p )
@@ -541,7 +541,7 @@
if ( !p || !*p || *p != '<' )
{
if ( document ) document->SetError( TIXML_ERROR_PARSING_ELEMENT );
- return false;
+ return NULL;
}
p = SkipWhiteSpace( p+1 );
@@ -551,7 +551,7 @@
if ( !p || !*p )
{
if ( document ) document->SetError( TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME );
- return false;
+ return NULL;
}
TIXML_STRING endTag ("</");
|