* event-loop.c (delete_async_signal_handler): Move pointer null
test to before pointer dereference.
2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
+ * event-loop.c (delete_async_signal_handler): Move pointer null
+ test to before pointer dereference.
+
* ui-out.c (append_header_to_list): Possible cut and paste error.
* MAINTAINERS: white space tweak.
else
{
prev_ptr = sighandler_list.first_handler;
- while (prev_ptr->next_handler != (*async_handler_ptr) && prev_ptr)
+ while (prev_ptr && prev_ptr->next_handler != (*async_handler_ptr))
prev_ptr = prev_ptr->next_handler;
prev_ptr->next_handler = (*async_handler_ptr)->next_handler;
if (sighandler_list.last_handler == (*async_handler_ptr))