kopia lustrzana https://gitlab.com/sane-project/backends
Fixed segmentation fault when $PATH is not set.
rodzic
8ea8fe0223
commit
341f58125e
|
@ -1,3 +1,7 @@
|
|||
2003-03-17 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
* backend/as6e.c: Fixed segmentation fault when $PATH is not set.
|
||||
|
||||
2003-03-16 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
* sanei/sanei_scsi.c: OS/2 specific changes: memory for SRB now is
|
||||
|
|
|
@ -793,6 +793,8 @@ check_for_driver (const char *devname)
|
|||
int count = 0, offset = 0;
|
||||
|
||||
path = getenv ("PATH");
|
||||
if (!path)
|
||||
return 0;
|
||||
while (path[count] != '\0')
|
||||
{
|
||||
memset (fullname, '\0', sizeof (fullname));
|
||||
|
|
Ładowanie…
Reference in New Issue