2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>

* posix/src/killinfo.c: Ensure interested is non-NULL before using it.
This commit is contained in:
Joel Sherrill
2010-08-29 19:50:33 +00:00
parent a006af3153
commit b003995151
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -1,3 +1,7 @@
2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/killinfo.c: Ensure interested is non-NULL before using it.
2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libcsupport/src/privateenv.c: Add macro to test status when
+1 -1
View File
@@ -265,7 +265,7 @@ int killinfo(
* If the interested thread is ready, don't think about changing.
*/
if ( !_States_Is_ready( interested->current_state ) ) {
if ( interested && !_States_Is_ready( interested->current_state ) ) {
/* preferred ready over blocked */
DEBUG_STEP("5");
if ( _States_Is_ready( the_thread->current_state ) ) {