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.
* 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
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;