about summary refs log tree commit diff
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 b92251eada..8c5833ccbf 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);