]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r269015:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 16 Aug 2014 00:54:56 +0000 (00:54 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 16 Aug 2014 00:54:56 +0000 (00:54 +0000)
commit4e2e9df991e633cb70e1cb7f85ca678685d7a8e8
treed813214a944b79cb450a1698ad3ee9833e970a13
parent12f96f45a3d5eb5056fc6f16a90619ccb8858fab
MFC r269015:
fparseln(3): Update from NetBSD sources.

-fix a condition so that fparseln() doesn't report spurious empty lines
 eg after 2 comment lines, or on EOF after a single comment line
-no escape character means no escaped characters

modify the previous fix so that no pointless realloc()s are done in
the case of multiple empty continuation lines, and comment the code
to make the logics obvious.

fparseln is now part of libc in NetBSD so this changes the previous
revision numbering.

Obtained from: NetBSD (CVS Rev. 1.6-1.7)

git-svn-id: svn://svn.freebsd.org/base/stable/10@270031 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libutil/fparseln.c