Re: [gtk-list] Re: gtk_init wierdness

> On Thu, 22 Oct 1998, Jason A. Pfeil wrote:
> > What is the value of story_file_p?  Trying to close a file pointer that
> > points to null is also suicidal for a program.
> I've noticed that closing a null pointer IS ok if you're using libc5, but
> glibc does produce the segv, as it should.  Note, some older apps that
> were designed with libc5 think that it's perfectly okay to close null
> pointers, and don't check for it... it's scary :)

Would it still cause a crash if it's not being executed.  Seriously, the only
code being executed here is the printf(), gtk_init(), and the last printf().
Why should it matter if a function that is not called tries to close a NULL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]