Fix a nasty bug where the wrong pointer was passed to the C side.
[SXSI/xpathcomp.git] / src / lexindex_stub.cpp
index a09216e..5e6dcdc 100644 (file)
@@ -48,10 +48,10 @@ extern "C" value caml_build_lex_index(value vtree, value vtag)
 {
   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);
-
   //Uncomment the following and comment the failwith line
   //LEXINDEX(vindex) = ... return a lex_index* ....