From 5e39adf043d8a0642a8af60b1ef54e7f90886fae Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 21 Mar 2007 09:23:11 +0000 Subject: [PATCH] Fix bad memory reference in CQL to PQF conversion which occurred when error 'Too many characters in query' was issued. --- src/zoom-c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zoom-c.c b/src/zoom-c.c index 7bed6d7..1a3e2ff 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: zoom-c.c,v 1.119 2007-03-20 21:37:32 adam Exp $ + * $Id: zoom-c.c,v 1.120 2007-03-21 09:23:11 adam Exp $ */ /** * \file zoom-c.c @@ -1284,7 +1284,7 @@ static zoom_ret ZOOM_connection_send_init(ZOOM_connection c) odr_prepend(c->odr_out, "ZOOM-C", ireq->implementationName)); - version = odr_strdup(c->odr_out, "$Revision: 1.119 $"); + version = odr_strdup(c->odr_out, "$Revision: 1.120 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; ireq->implementationVersion = @@ -4131,9 +4131,9 @@ static char *cql2pqf(ZOOM_connection c, const char *cql) char buf[512]; const char *addinfo; error = cql_transform_error(trans, &addinfo); - cql_transform_close(trans); sprintf(buf, "%.200s (addinfo=%.200s)", cql_strerror(error), addinfo); set_ZOOM_error(c, ZOOM_ERROR_CQL_TRANSFORM, buf); + cql_transform_close(trans); return 0; } -- 1.7.10.4