aboutsummaryrefslogtreecommitdiffstats
path: root/xpointer.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2009-09-07 14:58:47 +0200
committerDaniel Veillard <veillard@redhat.com>2009-09-07 14:58:47 +0200
commit594e5dfb48ee6fbac1b64155839063648022fc57 (patch)
treed3f84693bbc34a21be25753438f902eaf51b851d /xpointer.c
parentd44b9364991bd0067d50c29bdff48305dfdad4ce (diff)
downloadandroid_external_libxml2-594e5dfb48ee6fbac1b64155839063648022fc57.tar.gz
android_external_libxml2-594e5dfb48ee6fbac1b64155839063648022fc57.tar.bz2
android_external_libxml2-594e5dfb48ee6fbac1b64155839063648022fc57.zip
Chasing dead assignments reported by clang-scan
* SAX2.c dict.c error.c hash.c nanohttp.c parser.c python/libxml.c relaxng.c runtest.c tree.c valid.c xinclude.c xmlregexp.c xmlsave.c xmlschemas.c xpath.c xpointer.c: mostly removing unneded affectations, but this led to a few real bugs and some part not yet understood (relaxng/interleave)
Diffstat (limited to 'xpointer.c')
-rw-r--r--xpointer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xpointer.c b/xpointer.c
index 2a62abcd..7a42d02e 100644
--- a/xpointer.c
+++ b/xpointer.c
@@ -2631,13 +2631,12 @@ xmlXPtrGetLastChar(xmlNodePtr *node, int *indx) {
if (cur == NULL)
return(-1);
-
+
if ((cur->type == XML_ELEMENT_NODE) ||
(cur->type == XML_DOCUMENT_NODE) ||
(cur->type == XML_HTML_DOCUMENT_NODE)) {
if (pos > 0) {
cur = xmlXPtrGetNthChild(cur, pos);
- pos = 0;
}
}
while (cur != NULL) {