From: Adam Dickmeiss Date: Mon, 7 Jan 2008 17:32:49 +0000 (+0000) Subject: Fixed bug in ZOOM_options_getl WRT setting of parameter lenp. X-Git-Tag: YAZ.3.0.20~14 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=b8d0ce914a074e4c6769d7f4d5f75b2f50c070c1;p=yaz-moved-to-github.git Fixed bug in ZOOM_options_getl WRT setting of parameter lenp. Fixed bug in ZOOM_options_getl WRT setting of parameter lenp that would be unset if a callback_handle is used to retrieve the options value. This bug caused ZOOM extended services update to malfunction. --- diff --git a/src/zoom-opt.c b/src/zoom-opt.c index c199e89..42cc577 100644 --- a/src/zoom-opt.c +++ b/src/zoom-opt.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: zoom-opt.c,v 1.8 2007-05-05 11:53:26 adam Exp $ + * $Id: zoom-opt.c,v 1.9 2008-01-07 17:32:49 adam Exp $ */ /** * \file zoom-opt.c @@ -171,7 +171,11 @@ ZOOM_API(const char *) if (!opt) return 0; if (opt->callback_func) + { v = (*opt->callback_func)(opt->callback_handle, name); + if (v) + *lenp = strlen(v); + } if (!v) { struct ZOOM_options_entry *e;