projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a nasty bug where the wrong pointer was passed to the C side.
[SXSI/xpathcomp.git]
/
src
/
lexindex_stub.cpp
diff --git
a/src/lexindex_stub.cpp
b/src/lexindex_stub.cpp
index
a09216e
..
5e6dcdc
100644
(file)
--- a/
src/lexindex_stub.cpp
+++ b/
src/lexindex_stub.cpp
@@
-48,10
+48,10
@@
extern "C" value caml_build_lex_index(value vtree, value vtag)
{
CAMLparam2(vtree, vtag);
CAMLlocal1(vindex);
{
CAMLparam2(vtree, vtag);
CAMLlocal1(vindex);
+ const char * s;
vindex = sxsi_alloc_custom<lex_index*>();
xml_tree * tree = XMLTREE(vtree);
xml_tree::tag_t tag = TAG(vtag);
vindex = sxsi_alloc_custom<lex_index*>();
xml_tree * tree = XMLTREE(vtree);
xml_tree::tag_t tag = TAG(vtag);
-
//Uncomment the following and comment the failwith line
//LEXINDEX(vindex) = ... return a lex_index* ....
//Uncomment the following and comment the failwith line
//LEXINDEX(vindex) = ... return a lex_index* ....