Re: [gtk-list] Re: gtk_init wierdness
- From: Scott Stone <sstone ume pht co jp>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: gtk_init wierdness
- Date: Fri, 23 Oct 1998 09:13:01 +0900 (JST)
On Thu, 22 Oct 1998, katre wrote:
> >
> > 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
> pointer?
it wouldn't. Like I said before, compile your program, and post the
output from running ldd on it, please.
--------------------------------------------------
Scott M. Stone <sstone@pht.com, sstone@turbolinux.com>
<sstone@pht.co.jp>
Head of TurboLinux Development/Systems Administrator
Pacific HiTech, Inc (USA) / Pacific HiTech, KK (Japan)
http://www.pht.com http://armadillo.pht.co.jp
http://www.pht.co.jp http://www.turbolinux.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]