On 18/06/2013 21:22, m. allan noah wrote:
>>      I eventually found the root of the problem. Two option groups didn't
>> have there .cap value defined explicitly. This was working until it broke
>> recently, possibly related to the use of a newer compiler. However I pushed
>> a fix in git, and now this issue is fixed.
>>
>>
> Sounds like we need to armor scanimage against this.
>
> allan
     Hello,

     we can do:

diff --git a/frontend/scanimage.c b/frontend/scanimage.c
index ce958df..5c52f45 100644
--- a/frontend/scanimage.c
+++ b/frontend/scanimage.c
@@ -894,7 +894,7 @@ fetch_options (SANE_Device * device)
           exit (1);
         }

-      if (!SANE_OPTION_IS_SETTABLE (opt->cap))
+      if (!SANE_OPTION_IS_SETTABLE (opt->cap) || opt->type == 
SANE_TYPE_GROUP)
         continue;

        option_number[option_count] = i;


  I can commit this if OK.

Regards,
     Stef

Reply via email to