From 954f7828073149c75f2fc927dedf0c9750b4dbf2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 23 Jun 2016 08:28:25 +0100 Subject: [PATCH] Added missing handling of return value --- src/OpenThreads/pthreads/PThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenThreads/pthreads/PThread.cpp b/src/OpenThreads/pthreads/PThread.cpp index 527ed13a2..080f6cf6d 100644 --- a/src/OpenThreads/pthreads/PThread.cpp +++ b/src/OpenThreads/pthreads/PThread.cpp @@ -643,7 +643,7 @@ int Thread::start() { if(pd->stackSize < PTHREAD_STACK_MIN) pd->stackSize = PTHREAD_STACK_MIN; #endif - pthread_attr_setstacksize( &thread_attr, pd->stackSize); + status = pthread_attr_setstacksize( &thread_attr, pd->stackSize); if(status != 0) { return status; @@ -654,7 +654,7 @@ int Thread::start() { // Now get what we actually have... // size_t size; - pthread_attr_getstacksize( &thread_attr, &size); + status = pthread_attr_getstacksize( &thread_attr, &size); if(status != 0) { return status;