Ticket #4827: pthread-create-crash.patch
File pthread-create-crash.patch, 543 bytes (added by , 15 years ago) |
---|
-
src/system/libroot/posix/pthread/pthread.c
diff --git a/src/system/libroot/posix/pthread/pthread.c b/src/system/libroot/posix/pthread/pthread.c index ef3a5c8..27f1bfb 100644
a b pthread_create(pthread_t *_thread, const pthread_attr_t *_attr, 85 85 if (_attr == NULL) 86 86 attr = &pthread_attr_default; 87 87 else 88 attr = *_attr; 88 if (attr == NULL) 89 return EINVAL; 90 else 91 attr = *_attr; 89 92 90 93 thread = (pthread_thread *)malloc(sizeof(pthread_thread)); 91 94 if (thread == NULL)