[sane-devel] Error while setting the mode option of HP ScanJet 6200C

Henning Meier-Geinitz henning@meier-geinitz.de
Tue, 21 Jun 2005 18:56:26 +0200


Hi,

On Tue, Jun 21, 2005 at 10:47:02AM +0530, Mohit Kumar wrote:
> 			printf("Option %d Name: %s",index, option->name);

option->name may be NULL (if the option is a group).

> 			if(strcmp(option->name,"mode")==0)

See above. Test for the option type first.

Bye,
  Henning