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:
Jérôme Duval 2008-10-12 22:24:42 +00:00
parent 32e8b95c2a
commit 6d695d0bc8

View File

@ -3,6 +3,8 @@
#include "GenericThread.h" #include "GenericThread.h"
#include <string.h>
GenericThread::GenericThread(const char * a_thread_name, int32 a_priority, BMessage * a_message) GenericThread::GenericThread(const char * a_thread_name, int32 a_priority, BMessage * a_message)
: :
m_thread_data_store (a_message), m_thread_data_store (a_message),
@ -313,7 +315,7 @@ GenericThread::GetName (void)
{ {
thread_info t_thread_info; thread_info t_thread_info;
GetInfo (& t_thread_info); GetInfo (& t_thread_info);
return (t_thread_info.name); return strdup(t_thread_info.name);
} }
thread_state thread_state