Don't dump core when processing more than one file.

Bugfix has been forwarded to Ozan, and should be in his next release.
This commit is contained in:
jtc 1993-11-02 17:42:17 +00:00
parent 454f76bbdd
commit 4678be880f

View File

@ -863,6 +863,7 @@ int main(argc, argv)
} else /* file names in commandline */ } else /* file names in commandline */
for (; optind < argc; optind++) { for (; optind < argc; optind++) {
char *name = argv[optind]; /* next file name */ char *name = argv[optind]; /* next file name */
ilevel = 0;
infile[0] = fopen(name, "r"); infile[0] = fopen(name, "r");
if (!infile[0]) cantread(name); if (!infile[0]) cantread(name);
#ifndef NO__FILE #ifndef NO__FILE