From f433a0ea6e3d77809ca91a03d7ad305fc7fd5854 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 26 Nov 2018 14:00:46 +0100 Subject: [PATCH] eitd: fix stack use after scope Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/01414669878b0617fb489fce3d72521134209b58 Author: Jacek Jendrzej Date: 2018-11-26 (Mon, 26 Nov 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/eitd/sectionsd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index c2c9267c7..4411e81c8 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -2197,7 +2197,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());