summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2016-08-23 00:00:06 +0000
committerache <ache@FreeBSD.org>2016-08-23 00:00:06 +0000
commit6bd646825346d6a75c5d7071b3462a957a1cf29d (patch)
tree5a76cc33f3b20bd733fcb678c6e9cc944c02976b /lib
parentdece9cd3cae618e3273072c7e301445fc2c6132d (diff)
downloadFreeBSD-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.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/fgetln.c1
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); /* ??? */
}
OpenPOWER on IntegriCloud