gcc4 noticed GenericThread::GetName() was returning a pointer to a local variable. No code is using this function, so it's safe to strdup() it. This class needs a serious restyling, though, as it doesn't conform to our coding guidelines

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27442 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-12 09:33:59 +00:00
parent c4b2fd5be3
commit 1adaf58e1f

View File

@ -313,7 +313,7 @@ GenericThread::GetName(void)
{
thread_info t_thread_info;
GetInfo(& t_thread_info);
return (t_thread_info.name);
return strdup(t_thread_info.name);
}
thread_state