From b8d0ce914a074e4c6769d7f4d5f75b2f50c070c1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 7 Jan 2008 17:32:49 +0000 Subject: [PATCH] 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. --- src/zoom-opt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 1.7.10.4