31c31
< __FBSDID("$FreeBSD: head/usr.bin/grep/util.c 211364 2010-08-15 22:15:04Z gabor $");
---
> __FBSDID("$FreeBSD: head/usr.bin/grep/util.c 211463 2010-08-18 17:40:10Z gabor $");
187c187
< f = grep_stdin_open();
---
> f = grep_open(NULL);
218c218
< if ((ln.dat = grep_fgetln(f, &ln.len)) == NULL) {
---
> if ((ln.dat = grep_fgetln(f, &ln.len)) == NULL || ln.len == 0) {
< __FBSDID("$FreeBSD: head/usr.bin/grep/util.c 211364 2010-08-15 22:15:04Z gabor $");
---
> __FBSDID("$FreeBSD: head/usr.bin/grep/util.c 211463 2010-08-18 17:40:10Z gabor $");
187c187
< f = grep_stdin_open();
---
> f = grep_open(NULL);
218c218
< if ((ln.dat = grep_fgetln(f, &ln.len)) == NULL) {
---
> if ((ln.dat = grep_fgetln(f, &ln.len)) == NULL || ln.len == 0) {