made a bit more robust
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
sys_close(fp)
|
||||
register File *fp;
|
||||
{
|
||||
fp->o_flags = 0;
|
||||
close(fp->o_fd);
|
||||
fp->o_fd = -1;
|
||||
if (fp) {
|
||||
fp->o_flags = 0;
|
||||
close(fp->o_fd);
|
||||
fp->o_fd = -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user