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
Changed extract code so that it optimizes updates of records where content
[idzebra-moved-to-github.git]
/
index
/
alvis.c
diff --git
a/index/alvis.c
b/index/alvis.c
index
c926129
..
e168da3
100644
(file)
--- a/
index/alvis.c
+++ b/
index/alvis.c
@@
-1,4
+1,4
@@
-/* $Id: alvis.c,v 1.14 2007-03-07 14:18:35 marc Exp $
+/* $Id: alvis.c,v 1.15 2007-03-19 21:50:39 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
Copyright (C) 1995-2007
Index Data ApS
@@
-632,10
+632,10
@@
static const char *snippet_doc(struct recRetrieveCtrl *p, int text_mode,
else
wrbuf_printf(wrbuf, "</snippet>\n");
else
wrbuf_printf(wrbuf, "</snippet>\n");
- xml_doc_str = odr_strdup(p->odr, wrbuf_buf(wrbuf));
+ xml_doc_str = odr_strdup(p->odr, wrbuf_cstr(wrbuf));
zebra_snippets_destroy(res);
zebra_snippets_destroy(res);
- wrbuf_free(wrbuf, 1);
+ wrbuf_destroy(wrbuf);
return xml_doc_str;
}
return xml_doc_str;
}