xpath BUGFIX do not parse empty NCNames
diff --git a/src/xpath.c b/src/xpath.c
index 4232b72..9f4d173 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -2942,7 +2942,7 @@
/* NameTest (NCName ':' '*' | QName) or NodeType/FunctionName */
long int ncname_len = parse_ncname(&expr_str[parsed]);
- LY_CHECK_ERR_GOTO(ncname_len < 0, LOGVAL(ctx, LY_VCODE_XP_INEXPR, expr_str[parsed - ncname_len],
+ LY_CHECK_ERR_GOTO(ncname_len < 1, LOGVAL(ctx, LY_VCODE_XP_INEXPR, expr_str[parsed - ncname_len],
parsed - ncname_len + 1, expr_str); ret = LY_EVALID, error);
tok_len = ncname_len;
@@ -2952,7 +2952,7 @@
++tok_len;
} else {
ncname_len = parse_ncname(&expr_str[parsed + tok_len]);
- LY_CHECK_ERR_GOTO(ncname_len < 0, LOGVAL(ctx, LY_VCODE_XP_INEXPR, expr_str[parsed - ncname_len],
+ LY_CHECK_ERR_GOTO(ncname_len < 1, LOGVAL(ctx, LY_VCODE_XP_INEXPR, expr_str[parsed - ncname_len],
parsed - ncname_len + 1, expr_str); ret = LY_EVALID, error);
tok_len += ncname_len;
}