kopia lustrzana https://gitlab.com/sane-project/backends
Initialize global variables in sane_init to avoid segmentation faults when
sane_init/sane_exit is run more than once.merge-requests/1/head
rodzic
a0251b6cc1
commit
b0d7681738
|
@ -5,6 +5,9 @@
|
|||
Added vid/pid 0x07b3/0x0400 to gt68xx.conf also. Added indormation
|
||||
about Medion 4394. Mention ma1509 backend. Fix segfault when calling
|
||||
sane_open with an empty device name.
|
||||
* backend/net.c doc/descriptions/net.desc: Initialize global variables
|
||||
in sane_init to avoid segmentation faults when sane_init/sane_exit is
|
||||
run more than once.
|
||||
|
||||
2003-02-20 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
/* Please increase version number with every change
|
||||
(don't forget to update net.desc) */
|
||||
#define NET_VERSION "1.0.9"
|
||||
#define NET_VERSION "1.0.10"
|
||||
|
||||
#ifdef _AIX
|
||||
# include "../include/lalloca.h" /* MUST come first for AIX! */
|
||||
|
@ -456,6 +456,10 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
|
|||
DBG (2, "sane_init: authorize = %p, version_code = %p\n", authorize,
|
||||
version_code);
|
||||
|
||||
devlist = 0;
|
||||
first_device = 0;
|
||||
first_handle = 0;
|
||||
|
||||
auth_callback = authorize;
|
||||
|
||||
/* Return the version number of the sane-backends package to allow
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
:backend "net" ; name of backend
|
||||
:version "1.0.9"
|
||||
:version "1.0.10"
|
||||
:status :stable
|
||||
:manpage "sane-net"
|
||||
:url "http://www.penguin-breeder.org/?page=sane-net"
|
||||
|
|
Ładowanie…
Reference in New Issue