aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-08-31 20:36:19 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-08-31 20:36:19 +0000
commit598bb4cb3062941c7a14a30127becbfea8c62768 (patch)
treecce06bd273ef208ecf573d98562ec1ad26f151f5
parentc4b2cc78e35fcbf53d599c0d806af9f4cd1cd907 (diff)
Notes
-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 9f1e106a51bd..61cd27c1f616 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);