[libxml2/2.10] Remove set-but-unused variable in xmlXPathScanName
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2/2.10] Remove set-but-unused variable in xmlXPathScanName
- Date: Fri, 26 Aug 2022 15:36:43 +0000 (UTC)
commit 9a750270a3f6e061831ff7571fcc700214b26995
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 4a6f0e21..fbee6a52 100644
--- a/xpath.c
+++ b/xpath.c
@@ -10503,7 +10503,7 @@ xmlXPathCompFilterExpr(xmlXPathParserContextPtr ctxt) {
static xmlChar *
xmlXPathScanName(xmlXPathParserContextPtr ctxt) {
- int len = 0, l;
+ int l;
int c;
const xmlChar *cur;
xmlChar *ret;
@@ -10523,7 +10523,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]