fix use stack after scope

This commit is contained in:
Jacek Jendrzej
2017-09-21 18:45:47 +02:00
parent 9f6e78974b
commit d61b9745bc

View File

@@ -1428,8 +1428,8 @@ void CTimeThread::run()
{
time_t dvb_time = 0;
xprintf("%s::run:: starting, pid %d (%lu)\n", name.c_str(), getpid(), pthread_self());
const char *tn = ("sd:" + name).c_str();
set_threadname(tn);
const std::string tn = ("sd:" + name).c_str();
set_threadname(tn.c_str());
addFilters();
DMX::start();
@@ -1543,8 +1543,8 @@ int CSectionThread::Sleep()
void CSectionThread::run()
{
xprintf("%s::run:: starting, pid %d (%lu)\n", name.c_str(), getpid(), pthread_self());
const char *tn = ("sd:" + name).c_str();
set_threadname(tn);
const std::string tn = ("sd:" + name).c_str();
set_threadname(tn.c_str());
if (sections_debug)
dump_sched_info(name);