summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
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 */