[libxml2] Remove set-but-unused variable in xmlXPathScanName



commit 8016c8edcc73879a83270d4cd79a3def094d51a7
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Fri Aug 26 15:12:21 2022 +0200

    Remove set-but-unused variable in xmlXPathScanName
    
    Fix clang warning.

 xpath.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/xpath.c b/xpath.c
index 470d4f32..4d2ccf23 100644
--- a/xpath.c
+++ b/xpath.c
@@ -10504,7 +10504,7 @@ xmlXPathCompFilterExpr(xmlXPathParserContextPtr ctxt) {
 
 static xmlChar *
 xmlXPathScanName(xmlXPathParserContextPtr ctxt) {
-    int len = 0, l;
+    int l;
     int c;
     const xmlChar *cur;
     xmlChar *ret;
@@ -10524,7 +10524,6 @@ xmlXPathScanName(xmlXPathParserContextPtr ctxt) {
            (c == '_') || (c == ':') ||
            (IS_COMBINING(c)) ||
            (IS_EXTENDER(c)))) {
-       len += l;
        NEXTL(l);
        c = CUR_CHAR(l);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]