summaryrefslogtreecommitdiff
path: root/SAX2.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-01-02 10:42:01 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-01-02 10:42:01 +0000
commit1a9b7084f6313be41edbe143c1f56f327504d06c (patch)
treebb95fec76c464ad492bc79dbccc357d78dc41909 /SAX2.c
parent1ff4213edd9ac0b2946560d96f440410f15b7629 (diff)
downloadlibxml2-1a9b7084f6313be41edbe143c1f56f327504d06c.tar.gz
found and fixed a bug misallocating some non blank text node strings from
* SAX2.c: found and fixed a bug misallocating some non blank text node strings from the dictionnary. * xmlmemory.c: fixed a problem with the memory debug mutex release. Daniel
Diffstat (limited to 'SAX2.c')
-rw-r--r--SAX2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/SAX2.c b/SAX2.c
index 0ec19ca1..d27d5748 100644
--- a/SAX2.c
+++ b/SAX2.c
@@ -1670,7 +1670,7 @@ xmlSAX2TextNode(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
int i;
for (i = 1;i < len;i++) {
- if (!IS_BLANK_CH(*str)) goto skip;
+ if (!IS_BLANK_CH(str[i])) goto skip;
}
intern = xmlDictLookup(ctxt->dict, str, len);
}