⛏️ index : haiku.git

Diff

 src/system/libroot/posix/pthread/pthread_key.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/system/libroot/posix/pthread/pthread_key.cpp b/src/system/libroot/posix/pthread/pthread_key.cpp
index 431a4d4..be251f7 100644
--- a/src/system/libroot/posix/pthread/pthread_key.cpp
+++ b/src/system/libroot/posix/pthread/pthread_key.cpp
@@ -35,7 +35,7 @@


/*!	Function to get the thread specific value of a key in a lockless
	way.
	way. The thread specific value is reset to NULL.
	\a sequence must be the sequence of the key table that this value
	has to fit to.
*/
@@ -53,6 +53,8 @@

		value = keyData.value;
	} while (specificSequence != sequence);

	keyData.value = NULL;

	return value;
}