Blame SOURCES/efax-0.9-nullptr.patch
|
|
7224db |
--- efax-0.9/efax.c.nullptr Sat Mar 27 09:24:10 1999
|
|
|
7224db |
+++ efax-0.9/efax.c Wed Jan 12 22:17:21 2000
|
|
|
7224db |
@@ -2186,6 +2186,7 @@
|
|
|
7224db |
|
|
|
7224db |
/* print initial message to both stderr & stdout */
|
|
|
7224db |
argv0 = argv[0] ;
|
|
|
7224db |
+ memset((void *)lkfile, 0, sizeof(lkfile)); /* random effects on sparc linux */
|
|
|
7224db |
verb[1] = "ewia" ;
|
|
|
7224db |
msg ( "I " Version " " Copyright ) ;
|
|
|
7224db |
argv0 = efaxbasename ( argv0 ) ;
|
|
|
7224db |
--- efax-0.9/efaxos.c.nullptr Tue Mar 2 01:18:30 1999
|
|
|
7224db |
+++ efax-0.9/efaxos.c Wed Jan 12 22:16:04 2000
|
|
|
7224db |
@@ -482,7 +482,7 @@
|
|
|
7224db |
{
|
|
|
7224db |
int err = 0 ;
|
|
|
7224db |
char **p = lkfiles ;
|
|
|
7224db |
- while ( *p && ! err )
|
|
|
7224db |
+ while ( *p && **p && ! err )
|
|
|
7224db |
if ( ( err = ttlock ( *p++, log ) ) == 3 ) err = 0 ;
|
|
|
7224db |
return err ;
|
|
|
7224db |
}
|
|
|
7224db |
@@ -495,7 +495,7 @@
|
|
|
7224db |
{
|
|
|
7224db |
int err = 0, i ;
|
|
|
7224db |
char **p = lkfiles ;
|
|
|
7224db |
- while ( *p )
|
|
|
7224db |
+ while ( *p && **p )
|
|
|
7224db |
if ( ( i = ttunlock ( *p++ ) ) != 0 ) err = i ;
|
|
|
7224db |
return err ;
|
|
|
7224db |
}
|