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:
8cd521d
)
Allow string value v in @attr 10=v for SearchResult-1 reference
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 29 Nov 2005 11:38:34 +0000
(11:38 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 29 Nov 2005 11:38:34 +0000
(11:38 +0000)
index/zrpn.c
patch
|
blob
|
history
diff --git
a/index/zrpn.c
b/index/zrpn.c
index
9cf39d4
..
09f2d34
100644
(file)
--- a/
index/zrpn.c
+++ b/
index/zrpn.c
@@
-1,4
+1,4
@@
-/* $Id: zrpn.c,v 1.207 2005-11-09 11:51:30 adam Exp $
+/* $Id: zrpn.c,v 1.208 2005-11-29 11:38:34 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
@@
-1005,7
+1005,7
@@
static ZEBRA_RES term_limits_APT(ZebraHandle zh,
attr_init(&term_ref_id_attr, zapt, 10);
term_ref_id_int = attr_find_ex(&term_ref_id_attr, NULL, term_ref_id_str);
- if (term_ref_id_int != -1)
+ if (term_ref_id_int >= 0)
{
char *res = nmem_malloc(nmem, 20);
sprintf(res, "%d", term_ref_id_int);