Minor cleanups.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32031 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-02-10 10:52:54 +00:00
parent d5e9a52e35
commit a63d65764c
15 changed files with 137 additions and 53 deletions

View file

@ -968,7 +968,7 @@ callUncaughtHandler(id value)
thread = GSCurrentThread();
handler = thread->_exception_handler;
if (handler == NULL)
if (NULL == handler)
{
static int recursion = 0;
@ -991,10 +991,12 @@ callUncaughtHandler(id value)
*/
callUncaughtHandler(self);
}
thread->_exception_handler = handler->next;
handler->exception = self;
longjmp(handler->jumpState, 1);
else
{
thread->_exception_handler = handler->next;
handler->exception = self;
longjmp(handler->jumpState, 1);
}
}
#endif
}