fixed xpath single letter predicate bug (eg a[0])
This commit is contained in:
parent
4461cc9598
commit
c3af59b2d8
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ xpath_parse_predicate(struct xpath_element *xe,
|
|||
int len;
|
||||
|
||||
len = strlen(pred);
|
||||
for (i=len-2; i>=0; i--){ /* -2 since we search for ][ */
|
||||
for (i=len-1; i>=0; i--){ /* -2 since we search for ][ */
|
||||
s = &pred[i];
|
||||
if (i==0 ||
|
||||
(*(s)==']' && *(s+1)=='[')){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue