# | Line 646 | Line 646 | getrec(void) /* get next record from file */ | |
---|---|---|
646 | register struct field *f; | |
647 | ||
648 | while (ipb.chr != EOF) { | |
649 | < | if (blnkeq) /* beware of nbsynch() */ |
649 | > | if (blnkeq) { /* beware of nbsynch() */ |
650 | while (isblnk(ipb.chr)) | |
651 | resetinp(); | |
652 | + | if (ipb.chr == EOF) |
653 | + | return(0); |
654 | + | } |
655 | eatline = (!igneol && ipb.chr != '\n'); | |
656 | clearrec(); /* start with fresh record */ | |
657 | for (f = inpfmt; f != NULL; f = f->next) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |