diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-06-04 12:36:07 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-06-04 12:36:07 +0000 |
| commit | fcd70a75653472991a640d265a5eed497426dfcd (patch) | |
| tree | 9e680b27f033ae9db1af70bf84224bc33201b1ad /lib/libc/stdio/sscanf.c | |
| parent | aca66ea036c56b70312406c8622e0780fc20a505 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/sscanf.c')
| -rw-r--r-- | lib/libc/stdio/sscanf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/stdio/sscanf.c b/lib/libc/stdio/sscanf.c index 2ed797efdf90..c8877883bbc6 100644 --- a/lib/libc/stdio/sscanf.c +++ b/lib/libc/stdio/sscanf.c @@ -77,6 +77,7 @@ sscanf(str, fmt, va_alist) { int ret; va_list ap; + struct __sFILEX extra; FILE f; f._file = -1; @@ -86,6 +87,8 @@ sscanf(str, fmt, va_alist) f._read = eofread; f._ub._base = NULL; f._lb._base = NULL; + f._extra = &extra; + INITEXTRA(&f); #if __STDC__ va_start(ap, fmt); #else |
