[Xapian-discuss] Bug?
Olly Betts
olly at survex.com
Tue May 17 17:59:49 BST 2005
On Tue, May 17, 2005 at 05:28:38PM +0100, John Wards wrote:
> I just upgraded to 0.9.0 from 0.8.5 and I got a strange result.
I guess you must have the versions switched...
> /usr/local/lib/omega/bin/omega P='' DB=boris FMT=xml
>
> Would give me a seg fault
Try the attached patch (to xapian-core).
Cheers,
Olly
-------------- next part --------------
Index: api/omquery.cc
===================================================================
--- api/omquery.cc (revision 6206)
+++ api/omquery.cc (working copy)
@@ -182,7 +182,7 @@
TermIterator Query::get_terms_begin() const
{
DEBUGAPICALL(Xapian::TermIterator, "Xapian::Query::get_terms_begin", "");
- Assert(internal.get());
+ if (!internal.get()) RETURN(TermIterator(NULL));
RETURN(internal->get_terms());
}
More information about the Xapian-discuss
mailing list