[sane-devel] a backend test

Henning Meier-Geinitz henning@meier-geinitz.de
Fri, 22 Mar 2002 17:48:16 +0100


Hi,

On Thu, Mar 21, 2002 at 11:04:36PM -0600, Peter Fales wrote:
> Another bug?
> 
> I'm hitting line 1265:
> 
>                 if (resolution_mode_optnum) {
> 
> with resolution_mode_optnum set to 11, (my highest legal option is
> 10).  I think maybe get_optdesc_by_name should set *option_num to zero in
> addition to returning NULL if the option is not found.

0 would be option number count :-)
All the tests should be "if (resolution_mode_opt)" not optnum I guess.
And in fact all but 2 are.

Bye,
  Henning