From 3f0d4d7d7c5bece6799d966f0de7891c6d242261 Mon Sep 17 00:00:00 2001 From: rpj Date: Sun, 22 Aug 1999 11:43:40 +0000 Subject: 1999-08-22 Ross Johnson * exit.c (pthread_exit): Fix reference to potentially uninitialised pointer. 1999-08-21 Ross Johnson * 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 * runall.bat (join2): Add test. --- private.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'private.c') 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 */ -- cgit v1.2.3