backend/sharp.c: did only half of the devlist-patch in my last commit.

Thanks to Henning who noticed this.

Abel
DEVEL_2_0_BRANCH-1
Abel Deuring 2002-04-21 14:00:56 +00:00
rodzic 836ca96943
commit 0fdcb0c0bc
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -2490,6 +2490,7 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
return (SANE_STATUS_GOOD);
}
static const SANE_Device **devlist = 0;
void
sane_exit (void)
{
@ -2505,7 +2506,7 @@ sane_exit (void)
}
if (devlist)
free(devlist):
free(devlist);
devlist = 0;
first_dev = 0;
@ -2515,7 +2516,6 @@ sane_exit (void)
SANE_Status
sane_get_devices (const SANE_Device *** device_list, SANE_Bool local_only)
{
static const SANE_Device **devlist = 0;
SHARP_Device *dev;
int i;
DBG (10, "<< sane_get_devices ");