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:
d6a9b75
)
Removed one static var in order to make this module thread safe.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 29 Sep 1997 09:06:10 +0000
(09:06 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 29 Sep 1997 09:06:10 +0000
(09:06 +0000)
index/zrpn.c
patch
|
blob
|
history
diff --git
a/index/zrpn.c
b/index/zrpn.c
index
fd48152
..
7ec5e01
100644
(file)
--- a/
index/zrpn.c
+++ b/
index/zrpn.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zrpn.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zrpn.c,v $
- * Revision 1.66 1997-09-25 14:58:03 adam
+ * Revision 1.67 1997-09-29 09:06:10 adam
+ * Removed one static var in order to make this module thread safe.
+ *
+ * Revision 1.66 1997/09/25 14:58:03 adam
* Windows NT port.
*
* Revision 1.65 1997/09/22 12:39:06 adam
* Windows NT port.
*
* Revision 1.65 1997/09/22 12:39:06 adam
@@
-1344,7
+1347,7
@@
static RSET rpn_search_structure (ZServerInfo *zi, Z_RPNStructure *zs,
}
if (*zop->u.prox->proximityUnitCode != Z_ProxUnit_word)
{
}
if (*zop->u.prox->proximityUnitCode != Z_ProxUnit_word)
{
- static char val[16];
+ char *val = odr_malloc (zi->odr, 16);
zi->errCode = 132;
zi->errString = val;
sprintf (val, "%d", *zop->u.prox->proximityUnitCode);
zi->errCode = 132;
zi->errString = val;
sprintf (val, "%d", *zop->u.prox->proximityUnitCode);