summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/ftell.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-08-31 20:36:19 +0000
committerache <ache@FreeBSD.org>2001-08-31 20:36:19 +0000
commit0ad06d5009df34b869bbbcbbd9ca0608d276535a (patch)
treecce06bd273ef208ecf573d98562ec1ad26f151f5 /lib/libc/stdio/ftell.c
parent689eee076f9dc44bf46949caa22febf4436f3844 (diff)
downloadFreeBSD-src-0ad06d5009df34b869bbbcbbd9ca0608d276535a.zip
FreeBSD-src-0ad06d5009df34b869bbbcbbd9ca0608d276535a.tar.gz
Add originally missing __sinit() call.
Diffstat (limited to 'lib/libc/stdio/ftell.c')
-rw-r--r--lib/libc/stdio/ftell.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/stdio/ftell.c b/lib/libc/stdio/ftell.c
index 9f1e106..61cd27c 100644
--- a/lib/libc/stdio/ftell.c
+++ b/lib/libc/stdio/ftell.c
@@ -77,6 +77,10 @@ ftello(fp)
{
register off_t rv;
+ /* make sure stdio is set up */
+ if (!__sdidinit)
+ __sinit();
+
FLOCKFILE(fp);
rv = _ftello(fp);
FUNLOCKFILE(fp);
OpenPOWER on IntegriCloud