From f687a80fbc9827c82db4d162630f7010d754b583 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 22 Aug 2007 08:13:00 +0000 Subject: [PATCH] Do not set entries in scan response handler. It is initialized by the GFS already. Using GFS's initialization allows us to specify display_term. --- index/zebrasrv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index/zebrasrv.c b/index/zebrasrv.c index 939c7f0..29b19aa 100644 --- a/index/zebrasrv.c +++ b/index/zebrasrv.c @@ -1,4 +1,4 @@ -/* $Id: zebrasrv.c,v 1.17 2007-08-21 13:27:04 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, -- 1.7.10.4