From: Marc Cromme Date: Fri, 17 Nov 2006 13:47:22 +0000 (+0000) Subject: preventing later memory acess violation when one leaves retrieve.c:zebra_special_fetc... X-Git-Tag: ZEBRA.2.0.6~37 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=950d8094d0ee3aae2f4da7e5557c600ba871f269;p=idzebra-moved-to-github.git preventing later memory acess violation when one leaves retrieve.c:zebra_special_fetch by error condition before setting *rec_lenp by setting int len = 0; upon initialization. --- diff --git a/index/zebraapi.c b/index/zebraapi.c index 0ff27a1..7788602 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.231 2006-11-14 08:12:08 adam Exp $ +/* $Id: zebraapi.c,v 1.232 2006-11-17 13:47:22 marc Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -1065,7 +1065,7 @@ ZEBRA_RES zebra_records_retrieve(ZebraHandle zh, ODR stream, else if (poset[i].sysno) { char *buf; - int len; + int len = 0; zebra_snippets *hit_snippet = zebra_snippets_create(); zebra_snippets_hit_vector(zh, setname, poset[i].sysno,