Fixed segmentation fault when $PATH is not set.

merge-requests/1/head
Henning Geinitz 2003-03-17 19:33:00 +00:00
rodzic 8ea8fe0223
commit 341f58125e
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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));