* posix/src/psignal.c: Fixed NULL pointer access.
This commit is contained in:
Sebastian Huber
2010-09-28 07:40:34 +00:00
parent 4bff27618d
commit 6daba8105d
2 changed files with 7 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
2010-09-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
* posix/src/psignal.c: Fixed NULL pointer access.
2010-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/defaults/default_close.c: Return 0 instead of an error

View File

@@ -117,12 +117,10 @@ void _POSIX_signals_Post_switch_extension(
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
/*
* api cannot be NULL or we would not have registered this API extension.
* api may be NULL in case of a thread close in progress
*/
#if defined(RTEMS_DEBUG)
if ( !api )
return;
#endif
if ( !api )
return;
/*
* If we invoke any user code, there is the possibility that