summaryrefslogtreecommitdiff
path: root/libio/oldiopopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/oldiopopen.c')
-rw-r--r--libio/oldiopopen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/oldiopopen.c b/libio/oldiopopen.c
index 1e6f13358f..0424b507e3 100644
--- a/libio/oldiopopen.c
+++ b/libio/oldiopopen.c
@@ -203,14 +203,14 @@ _IO_old_popen (command, mode)
#endif
fp = &new_f->fpx.file.file;
_IO_init (fp, 0);
- _IO_JUMPS (fp) = &_IO_old_proc_jumps;
- _IO_old_file_init (fp);
+ _IO_JUMPS (&new_f->fpx.file) = &_IO_old_proc_jumps;
+ _IO_old_file_init (&new_f->fpx.file);
#if !_IO_UNIFIED_JUMPTABLES
new_f->fpx.file.vtable = NULL;
#endif
if (_IO_old_proc_open (fp, command, mode) != NULL)
return fp;
- _IO_un_link (fp);
+ _IO_un_link (&new_f->fpx.file);
free (new_f);
return NULL;
}