set _buf to 0 on open
This commit is contained in:
parent
de55f34bbd
commit
5331d4d232
2 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,7 @@ char *mode;
|
|||
fp->_count = 0;
|
||||
fp->_fd = fd;
|
||||
fp->_flags = flags;
|
||||
fp->_buf = 0;
|
||||
_io_table[i] = fp;
|
||||
return(fp);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue