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:
Axel Dörfler
2006-04-24 23:18:14 +00:00
parent 29a92e4f53
commit d59df8688e
@@ -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)