diff options
| author | Daniel Veillard <veillard@redhat.com> | 2009-09-07 14:58:47 +0200 |
|---|---|---|
| committer | Daniel Veillard <veillard@redhat.com> | 2009-09-07 14:58:47 +0200 |
| commit | 594e5dfb48ee6fbac1b64155839063648022fc57 (patch) | |
| tree | d3f84693bbc34a21be25753438f902eaf51b851d /xpointer.c | |
| parent | d44b9364991bd0067d50c29bdff48305dfdad4ce (diff) | |
| download | android_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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) { |
