diff options
Diffstat (limited to 'src/Common/Xml.c')
-rw-r--r-- | src/Common/Xml.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Common/Xml.c b/src/Common/Xml.c index d733dac1..6e6f8724 100644 --- a/src/Common/Xml.c +++ b/src/Common/Xml.c @@ -128,9 +128,10 @@ char *XmlGetNodeText (char *xmlNode, char *xmlText, int xmlTextSize) if (t[0] != '<') return NULL; - t = strchr (t, '>') + 1; - if (t == (char *)1) return NULL; + t = strchr (t, '>'); + if (t == NULL) return NULL; + t++; e = strchr (e, '<'); if (e == NULL) return NULL; |