fclose() should now accept a NULL parameter (doesn't clobber errno, though, as, at
least in theory, that should still contain the error from an earlier operation). This might fix bug #500. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17228 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -43,6 +43,9 @@ _IO_new_fclose (fp)
|
||||
{
|
||||
int status;
|
||||
|
||||
if (fp == NULL)
|
||||
return -1;
|
||||
|
||||
CHECK_FILE(fp, EOF);
|
||||
|
||||
#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)
|
||||
|
||||
Reference in New Issue
Block a user