Re: SEGV when lookup_* returns NULL
- From
- Morten Welinder <mwelinder@gmail.com>
- Date
- Nov 28, 2006, 02:23 UTC
- Message-ID
- <118833cc0611271823t3b1783cem38f031ac26ac0f94@mail.gmail.com>
- In-Reply-To
- <7v3b84e8cg.fsf@assigned-by-dhcp.cox.net>
> Why? You would certainly install your own die() handler by that > time I presume?
Likely, but short of exiting or using longjmp/setjmp what can you do in such a "die"? Not much. And most GUI users will be unhappy with the exit approach.
If there is any chance that the error is not the programmer's fault, a nice library ought to pass the error back somehow.