eitd: fix stack use after scope

This commit is contained in:
Jacek Jendrzej
2018-11-26 14:00:46 +01:00
parent 15c779f538
commit a34614ae57

View File

@@ -2195,7 +2195,7 @@ static void *houseKeepingThread(void *)
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
std::string d = epg_dir + "/";
static std::string d = epg_dir + "/";
printf("[%s]: %s\n",__func__,d.c_str());