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:
rocky
2005-01-19 17:23:28 +00:00
parent a5dd90adb2
commit 17e0ce465d

View File

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