projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support for relations on text operands. Open range support in
[idzebra-moved-to-github.git]
/
index
/
apitest.c
diff --git
a/index/apitest.c
b/index/apitest.c
index
d9cef32
..
7af42a5
100644
(file)
--- a/
index/apitest.c
+++ b/
index/apitest.c
@@
-98,7
+98,7
@@
int main (int argc, char **argv)
{
/* odr is a handle to memory assocated with RETURNED data from
various functions */
{
/* odr is a handle to memory assocated with RETURNED data from
various functions */
- ODR odr = odr_createmem (ODR_ENCODE);
+ ODR odr;
/* zh is our Zebra Handle - describes the server as a whole */
ZebraHandle zh;
/* zh is our Zebra Handle - describes the server as a whole */
ZebraHandle zh;
@@
-107,7
+107,11
@@
int main (int argc, char **argv)
char *base = "Default";
int argno;
char *base = "Default";
int argno;
- /* open Zebra */
+ nmem_init ();
+
+ odr = odr_createmem (ODR_ENCODE);
+
+ /* open Zebra */
zh = zebra_open ("zebra.cfg");
if (!zh)
{
zh = zebra_open ("zebra.cfg");
if (!zh)
{