set _buf to 0 on open
This commit is contained in:
parent
de55f34bbd
commit
5331d4d232
@ -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…
x
Reference in New Issue
Block a user