Accomodate Windows that sometimes gives an argc that seems one greater
than what's not NULL in argv. And it is probably a good idea anyway to test for null strings before calling strdup()
This commit is contained in:
@@ -766,7 +766,7 @@ main(int argc,char *argv[])
|
||||
exit(1);
|
||||
}
|
||||
}else
|
||||
span=strdup(argv[optind]);
|
||||
if (argv[optind]) span=strdup(argv[optind]);
|
||||
|
||||
report(PARANOIA_VERSION);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user