summaryrefslogtreecommitdiffstats
path: root/src/xml/dom
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2010-03-05 10:28:32 (GMT)
committerPeter Hartmann <peter.hartmann@nokia.com>2010-03-05 13:14:26 (GMT)
commit4b3b9b792dfe2d25a271f042f23df22e8b9684f6 (patch)
treecdb6ab1c5cbc8cbde956600aee7f3a4e8b676f63 /src/xml/dom
parent3fdad84b40b62979844c2d37d16093a0b67222df (diff)
downloadQt-4b3b9b792dfe2d25a271f042f23df22e8b9684f6.zip
Qt-4b3b9b792dfe2d25a271f042f23df22e8b9684f6.tar.gz
Qt-4b3b9b792dfe2d25a271f042f23df22e8b9684f6.tar.bz2
QDom: prevent infinite loop when cloning a DTD
we forgot to advance the pointer to the current node. Reviewed-by: Frans Englich Task-number: QTBUG-8398
Diffstat (limited to 'src/xml/dom')
-rw-r--r--src/xml/dom/qdom.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp
index 8d9ae4f..0150515 100644
--- a/src/xml/dom/qdom.cpp
+++ b/src/xml/dom/qdom.cpp
@@ -3487,6 +3487,7 @@ QDomDocumentTypePrivate::QDomDocumentTypePrivate(QDomDocumentTypePrivate* n, boo
if (p->isNotation())
// Dont use normal insert function since we would create infinite recursion
notations->map.insertMulti(p->nodeName(), p);
+ p = p->next;
}
}