Fixed the previous fix, Daniel
diff --git a/xpointer.c b/xpointer.c
index 12f5b71..e5c8c7b 100644
--- a/xpointer.c
+++ b/xpointer.c
@@ -670,8 +670,7 @@
     if (i >= cur->locNr) {
 #ifdef DEBUG
         xmlGenericError(xmlGenericErrorContext, 
-	        "xmlXPtrLocationSetDel: Range %s wasn't found in RangeList\n",
-		val->stringval);
+	        "xmlXPtrLocationSetDel: Range wasn't found in RangeList\n");
 #endif
         return;
     }