set _buf to 0 on open

This commit is contained in:
ceriel 1987-07-17 14:04:14 +00:00
parent de55f34bbd
commit 5331d4d232
2 changed files with 2 additions and 0 deletions

View file

@ -34,6 +34,7 @@ char *mode;
fp->_count = 0; fp->_count = 0;
fp->_fd = fd; fp->_fd = fd;
fp->_flags = flags; fp->_flags = flags;
fp->_buf = 0;
_io_table[i] = fp; _io_table[i] = fp;
return(fp); return(fp);
} }

View file

@ -52,6 +52,7 @@ char *name , *mode;
fp->_count = 0; fp->_count = 0;
fp->_fd = fd; fp->_fd = fd;
fp->_flags = flags; fp->_flags = flags;
fp->_buf = 0;
_io_table[i] = fp; _io_table[i] = fp;
return(fp); return(fp);
} }