From 950d8094d0ee3aae2f4da7e5557c600ba871f269 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Fri, 17 Nov 2006 13:47:22 +0000 Subject: [PATCH] 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. --- index/zebraapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 1.7.10.4