[sane-devel] sane-frontends 1.0.14 xcam.c using uninitialized variable

Julien BLACHE jb at jblache.org
Tue Sep 20 17:29:05 UTC 2005


Johannes Meixner <jsmeix at suse.de> wrote:

> I noticed in sane-frontends 1.0.14 that in src/xcam.c
> the following code uses the uninitialized variable fd:

>   if (fd < 0)
>     return;
>   load_settings (filename, silent);
>   sanei_load_values (fd, dialog->dev);
>   DBG (DBG_debug, "xcam, load_defaults: exit\n");
> }

Dead code. load_settings() opens filename and calls
sanei_load_values().

Fixed in CVS, thanks.

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb at jblache.org>                                  GPG KeyID 0xF5D65169



More information about the sane-devel mailing list