unoxml/source/dom/document.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit f9263bbf3c06dbaec7577f2c7e2622f149073e7a
Author: Xisco Fauli <[email protected]>
AuthorDate: Fri Oct 18 19:48:57 2024 +0200
Commit: Xisco Fauli <[email protected]>
CommitDate: Wed Oct 23 13:44:34 2024 +0200
tdf#163486: PVS: missing while loop iterator
Since
commit c5db3b93ee1058bd20ebcde2e757b52b9a67b74a
Author: Michael Stahl <[email protected]>
Date: Thu Feb 10 16:45:02 2011 +0100
xmlfix3: unoxml: prevent invalid child-parent relationships:
V1044 Loop break conditions do not depend on the number of iterations.
Change-Id: I611911bdcdb812ed46a529a217ab6612a254f441
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175174
Reviewed-by: Michael Stahl <[email protected]>
Reviewed-by: Xisco Fauli <[email protected]>
Tested-by: Jenkins
diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx
index 0eba4c26597f..ab57e51b869a 100644
--- a/unoxml/source/dom/document.cxx
+++ b/unoxml/source/dom/document.cxx
@@ -66,6 +66,7 @@ namespace DOM
(cur->type == XML_DTD_NODE)) {
return cur;
}
+ cur = cur->next;
}
return nullptr;
}