diff options
author | ache <ache@FreeBSD.org> | 2016-08-23 00:00:06 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2016-08-23 00:00:06 +0000 |
commit | 6bd646825346d6a75c5d7071b3462a957a1cf29d (patch) | |
tree | 5a76cc33f3b20bd733fcb678c6e9cc944c02976b | |
parent | dece9cd3cae618e3273072c7e301445fc2c6132d (diff) | |
download | FreeBSD-src-6bd646825346d6a75c5d7071b3462a957a1cf29d.zip FreeBSD-src-6bd646825346d6a75c5d7071b3462a957a1cf29d.tar.gz |
Direct commit, equal to MFC part of r295632 which is not planned for
MFC at whole.
Set __SERR on __slbexpand() errors.
-rw-r--r-- | lib/libc/stdio/fgetln.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/fgetln.c b/lib/libc/stdio/fgetln.c index 1779de2..6546768 100644 --- a/lib/libc/stdio/fgetln.c +++ b/lib/libc/stdio/fgetln.c @@ -159,6 +159,7 @@ fgetln(FILE *fp, size_t *lenp) error: *lenp = 0; /* ??? */ + fp->_flags |= __SERR; FUNLOCKFILE(fp); return (NULL); /* ??? */ } |