projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c76d814
)
Fix xpath indexing for non-existent attribute value
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 29 Aug 2002 15:10:47 +0000
(15:10 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 29 Aug 2002 15:10:47 +0000
(15:10 +0000)
recctrl/recgrs.c
patch
|
blob
|
history
diff --git
a/recctrl/recgrs.c
b/recctrl/recgrs.c
index
5514b2b
..
12ad348
100644
(file)
--- a/
recctrl/recgrs.c
+++ b/
recctrl/recgrs.c
@@
-1,4
+1,4
@@
-/* $Id: recgrs.c,v 1.63 2002-08-28 19:52:29 adam Exp $
+/* $Id: recgrs.c,v 1.64 2002-08-29 15:10:47 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
@@
-236,12
+236,14
@@
static void index_xpath (data1_node *n, struct recExtractCtrl *p,
wrd->length = strlen(attr_tag_path_full);
(*p->tokenAdd)(wrd);
wrd->length = strlen(attr_tag_path_full);
(*p->tokenAdd)(wrd);
- wrd->attrUse = 1015;
- wrd->reg_type = 'w';
- wrd->string = xp->value;
- wrd->length = strlen(xp->value);
-
- (*p->tokenAdd)(wrd);
+ if (xp->value)
+ {
+ wrd->attrUse = 1015;
+ wrd->reg_type = 'w';
+ wrd->string = xp->value;
+ wrd->length = strlen(xp->value);
+ (*p->tokenAdd)(wrd);
+ }
wrd->reg_type = '0';
wrd->attrUse = 2;
wrd->reg_type = '0';
wrd->attrUse = 2;