kopia lustrzana https://gitlab.com/sane-project/backends
When no port is specified in the gphoto2.conf config file, an attempt
was being made to strdup() a bad pointer.merge-requests/1/head
rodzic
486e6b24a9
commit
88df3af0bb
|
@ -1,3 +1,7 @@
|
|||
2005-05-02 Peter Fales <peter@fales-lorenz.net>
|
||||
* backend/gphoto2.c: Fix core dump when no port is specified in
|
||||
the gphoto2 config file. (bug #301552)
|
||||
|
||||
2005-04-29 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
* doc/descriptions/sp15c.desc: Added ScanPartner 600C (bug
|
||||
|
|
|
@ -833,13 +833,13 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback UNUSEDARG authorize)
|
|||
fclose (fp);
|
||||
}
|
||||
|
||||
dev[0].name = strdup (Cam_data.port);
|
||||
|
||||
DBG (3, "sane_init: about to init_gphoto2\n");
|
||||
|
||||
if (init_gphoto2 () != SANE_STATUS_GOOD)
|
||||
return SANE_STATUS_INVAL;
|
||||
|
||||
dev[0].name = strdup (Cam_data.port);
|
||||
|
||||
DBG (3, "sane_init: about to get_info\n");
|
||||
if (get_info () != SANE_STATUS_GOOD)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue