set _buf to 0 on open

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

View File

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

View File

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