kopia lustrzana https://gitlab.com/sane-project/backends
rodzic
c3f0904b80
commit
e8c11a0849
|
@ -311,7 +311,6 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
|
|||
SANE_Status
|
||||
sane_get_devices (const SANE_Device *** device_list, SANE_Bool local_only)
|
||||
{
|
||||
static const SANE_Device **devlist = 0;
|
||||
struct sp15c *dev;
|
||||
int i;
|
||||
|
||||
|
@ -990,6 +989,9 @@ sane_exit (void)
|
|||
free (dev->buffer);
|
||||
free (dev);
|
||||
}
|
||||
|
||||
if (devlist)
|
||||
free (devlist);
|
||||
} /* sane_exit */
|
||||
|
||||
/* }################ internal (support) routines ################{ */
|
||||
|
|
|
@ -97,6 +97,7 @@ static const char RCSid_h[] = "$Header$";
|
|||
*
|
||||
*/
|
||||
|
||||
static const SANE_Device **devlist = NULL;
|
||||
static int num_devices;
|
||||
static struct sp15c *first_dev;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue