summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadcreate.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-01 00:44:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-01 00:44:15 +0000
commite889a857cd6a5d8366bcecf78d6075dfd414d252 (patch)
tree44996fa8e75d0443a40dfb94b8952ae2314a1ea3 /cpukit/posix/src/pthreadcreate.c
parent2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-e889a857cd6a5d8366bcecf78d6075dfd414d252.tar.bz2
2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/clockgettime.c, posix/src/clocksettime.c, Minor modifications to improve testability. * posix/src/pthreadcreate.c: Add NULL check for thread entry.
Diffstat (limited to 'cpukit/posix/src/pthreadcreate.c')
-rw-r--r--cpukit/posix/src/pthreadcreate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c
index c239036e1b..e6bd5bc549 100644
--- a/cpukit/posix/src/pthreadcreate.c
+++ b/cpukit/posix/src/pthreadcreate.c
@@ -44,6 +44,9 @@ int pthread_create(
struct sched_param schedparam;
Objects_Name name;
+ if ( !start_routine )
+ return EFAULT;
+
the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;
if ( !the_attr->is_initialized )