fix readepg from sectionsdcontrol :supplement to 76474020e1 new try

Origin commit data
------------------
Branch: ni/coolstream
Commit: 31325875db
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-01-11 (Wed, 11 Jan 2017)

Origin message was:
------------------
fix readepg from sectionsdcontrol :supplement to 76474020e1 new try

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-01-11 22:15:36 +01:00
parent 9192b868c1
commit dafd715d6f

View File

@@ -1225,7 +1225,7 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng
writeLockMessaging();
data[dataLength] = '\0';
epg_dir = (std::string)data + "/";
static std::string epg_dir_tmp = (std::string)data + "/";
unlockMessaging();
@@ -1233,7 +1233,7 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
if (pthread_create (&thrInsert, &attr, insertEventsfromFile, (void *)epg_dir.c_str() ))
if (pthread_create (&thrInsert, &attr, insertEventsfromFile, (void *)epg_dir_tmp.c_str() ))
{
perror("sectionsd: pthread_create()");
}