X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebrasrv.c;h=f35c05148003d4dc0b4a4bbcb11e295c2c8ca51e;hb=42cd12e606db733d23606480a1ece262ebba77ed;hp=939c7f05dc6bac67f1b9b32fb0dae8de1541cd48;hpb=5623222cf968d493c2bc9506c42b8344de60c4e5;p=idzebra-moved-to-github.git diff --git a/index/zebrasrv.c b/index/zebrasrv.c index 939c7f0..f35c051 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.19 2007-08-27 17:22:22 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -61,6 +61,7 @@ bend_initresult *bend_init (bend_initrequest *q) struct statserv_options_block *sob; char *user = NULL; char *passwd = NULL; + char version_str[16]; r->errcode = 0; r->errstring = 0; @@ -72,8 +73,10 @@ bend_initresult *bend_init (bend_initrequest *q) q->bend_fetch = bend_fetch; q->bend_scan = bend_scan; + zebra_get_version(version_str, 0); + q->implementation_name = "Zebra Information Server"; - q->implementation_version = "Zebra " ZEBRAVER; + q->implementation_version = odr_strdup(q->stream, version_str); yaz_log (YLOG_DEBUG, "bend_init"); @@ -367,8 +370,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,