[OT] Re: fopen(NULL) causes segmentation fault

Michael Vance briareos@lokigames.com
Tue Mar 28 10:46:00 GMT 2000


On Tue, Mar 28, 2000 at 07:24:14PM +0100, Mo McKinlay wrote:

> platforms do not (you may find that they set errno to EFAULT in this
> case). In any case, you should take up the issue with the glibc people if

Shouldn't fclose set errno to EBADF and then return? From the man
page:

ERRORS
       EBADF  The argument stream is not an open stream.

m.

-- 
Programmer             "Ha ha." "Ha ha." "What are you laughing at?"
Loki Software                      "Just the horror of being alive."
http://lokigames.com/~briareos/                   - Tony Millionaire


More information about the Gcc-bugs mailing list