X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebrasrv.c;h=29b19aabe96ed9efa70ba27641a99d4329a7a571;hb=f687a80fbc9827c82db4d162630f7010d754b583;hp=25f2d27f1c3aafa8cb6455e1ac26fe5939715b90;hpb=8174591e6c5c002acca0db83c4c46e1d0265a9e2;p=idzebra-moved-to-github.git diff --git a/index/zebrasrv.c b/index/zebrasrv.c index 25f2d27..29b19aa 100644 --- a/index/zebrasrv.c +++ b/index/zebrasrv.c @@ -1,4 +1,4 @@ -/* $Id: zebrasrv.c,v 1.16 2007-05-21 11:54:59 adam Exp $ +/* $Id: zebrasrv.c,v 1.18 2007-08-22 08:13:00 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -367,8 +367,6 @@ static int bend_scan (void *handle, bend_scan_rr *r) r->errstring = 0; return 0; } - r->entries = (struct scan_entry *) - odr_malloc (r->stream, sizeof(*r->entries) * r->num_entries); res = zebra_scan(zh, r->stream, r->term, r->attributeset, &r->term_position, @@ -383,6 +381,7 @@ static int bend_scan (void *handle, bend_scan_rr *r) for (i = 0; i < r->num_entries; i++) { r->entries[i].term = entries[i].term; + r->entries[i].display_term = entries[i].display_term; r->entries[i].occurrences = CAST_ZINT_TO_INT(entries[i].occurrences); }