From c06b6654f353f3f4694ead2ad5fcd97a452b868c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 13 Aug 2004 19:08:35 +0000 Subject: [PATCH] _user_wait_for_team() no longer tries to copy the return code if its storage location is NULL. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8561 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/team.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/core/team.c b/src/kernel/core/team.c index 32d3a63442..6fb75ca303 100644 --- a/src/kernel/core/team.c +++ b/src/kernel/core/team.c @@ -981,7 +981,7 @@ _user_wait_for_team(team_id id, status_t *_userReturnCode) return B_BAD_ADDRESS; status = wait_for_team(id, &returnCode); - if (status >= B_OK) { + if (status >= B_OK && _userReturnCode != NULL) { if (user_memcpy(_userReturnCode, &returnCode, sizeof(returnCode)) < B_OK) return B_BAD_ADDRESS; }