summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
authorrpj <rpj>1999-08-22 11:43:40 +0000
committerrpj <rpj>1999-08-22 11:43:40 +0000
commit3f0d4d7d7c5bece6799d966f0de7891c6d242261 (patch)
tree862c101ab9713b0401bb7bc583f8c2216745334d /private.c
parent5e87a0d9bdd4c2c2ab0e45a6379b4df0f1471ffa (diff)
1999-08-22 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* exit.c (pthread_exit): Fix reference to potentially uninitialised pointer. 1999-08-21 Ross Johnson <rpj@ixobrychus.canberra.edu.au> * private.c (_pthread_threadStart): Apply fix of 1999-08-19 this time to C++ and non-trapped C versions. Ommitted to do this the first time through. tests/ChangeLog: Aug 22 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au> * runall.bat (join2): Add test.
Diffstat (limited to 'private.c')
-rw-r--r--private.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/private.c b/private.c
index 58bf148..ede6b14 100644
--- a/private.c
+++ b/private.c
@@ -237,8 +237,7 @@ _pthread_threadStart (ThreadParms * threadParms)
/*
* Run the caller's routine;
*/
- (*start) (arg);
- status = self->exitStatus = (void *) 0;
+ status = self->exitStatus = (*start) (arg);
}
catch (Pthread_exception_cancel)
{
@@ -269,8 +268,7 @@ _pthread_threadStart (ThreadParms * threadParms)
* Run the caller's routine; no cancelation or other exceptions will
* be honoured.
*/
- (*start) (arg);
- status = (void *) 0;
+ status = (*start) (arg);
#endif /* __cplusplus */