[sane-devel] a backend test
Henning Meier-Geinitz
henning at meier-geinitz.de
Tue Mar 19 19:43:43 GMT 2002
Hi,
On Mon, Mar 18, 2002 at 09:37:22PM -0600, Frank Zago wrote:
> New tstbackend available.
The pnm backend (with lower recursion level) bails out with -l2:
FATAL ERROR : cannot get option descriptor for option 27 (Success)
There are only 27 options (0-26) so there is something wrong here.
Also "Success" looks suspicous.
get_optdesc_by_name()
[...]
for (*option_num = 0; *option_num <= num_dev_options; (*option_num)++) {
Shouldn't this be "< num_dev_options"
opt = sane_get_option_descriptor (device, *option_num);
check(FATAL, (opt != NULL), "cannot get option descriptor for option %d (%s)",
*option_num, sane_strstatus(status));
sane_get_option_descriptor() returns no status...
Bye,
Henning
More information about the sane-devel
mailing list