a lot of small cleanups based on Linus' sparse check output. Daniel
* HTMLparser.c SAX2.c encoding.c globals.c parser.c relaxng.c
runsuite.c runtest.c schematron.c testHTML.c testReader.c
testRegexp.c testSAX.c testThreads.c valid.c xinclude.c xmlIO.c
xmllint.c xmlmodule.c xmlschemas.c xpath.c xpointer.c: a lot of
small cleanups based on Linus' sparse check output.
Daniel
diff --git a/xpointer.c b/xpointer.c
index 84c80c3..943cf21 100644
--- a/xpointer.c
+++ b/xpointer.c
@@ -2412,7 +2412,7 @@
if (pos + bytes >= len) {
bytes -= (len - pos);
cur = xmlXPtrAdvanceNode(cur, NULL);
- cur = 0;
+ pos = 0;
} else if (pos + bytes < len) {
pos += bytes;
*node = cur;