aboutsummaryrefslogtreecommitdiff
path: root/libio/vdprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/vdprintf.c')
-rw-r--r--libio/vdprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libio/vdprintf.c b/libio/vdprintf.c
index b92251e..8c5833c 100644
--- a/libio/vdprintf.c
+++ b/libio/vdprintf.c
@@ -32,8 +32,10 @@ _IO_vdprintf (d, format, arg)
_IO_va_list arg;
{
struct _IO_FILE_plus tmpfil;
+ _IO_lock_t lock;
int done;
+ tmpfil.file._lock = &lock;
_IO_init (&tmpfil.file, 0);
_IO_JUMPS (&tmpfil.file) = &_IO_file_jumps;
_IO_file_init (&tmpfil.file);