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

Johannes Meixner jsmeix at suse.de
Tue Sep 20 15:02:09 UTC 2005


I noticed in sane-frontends 1.0.14 that in src/xcam.c
the following code uses the uninitialized variable fd:
static void
load_defaults (int silent)
  char filename[PATH_MAX];
  int fd;

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

Kind Regards
Johannes Meixner
SUSE LINUX Products GmbH, Maxfeldstrasse 5      Mail: jsmeix at suse.de
90409 Nuernberg, Germany                    WWW: http://www.suse.de/

More information about the sane-devel mailing list