fix a warning (return local address).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28012 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
32e8b95c2a
commit
6d695d0bc8
@ -3,6 +3,8 @@
|
||||
|
||||
#include "GenericThread.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
GenericThread::GenericThread(const char * a_thread_name, int32 a_priority, BMessage * a_message)
|
||||
:
|
||||
m_thread_data_store (a_message),
|
||||
@ -313,7 +315,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
|
||||
|
Loading…
Reference in New Issue
Block a user