From 3533f782efe8c2b8c67d609ef7046b196b19d105 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 21 Oct 2021 16:42:16 +0200 Subject: [PATCH] xmlutil:insertEventsfromXMLTV make url not static Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/2ac0aa93195c26b4d66130f80b262410b9a0527d Author: Jacek Jendrzej Date: 2021-10-21 (Thu, 21 Oct 2021) --- src/eitd/xmlutil.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/eitd/xmlutil.cpp b/src/eitd/xmlutil.cpp index c47f9578d..ace9f7f08 100644 --- a/src/eitd/xmlutil.cpp +++ b/src/eitd/xmlutil.cpp @@ -685,8 +685,7 @@ void *insertEventsfromXMLTV(void * data) reader_ready = true; pthread_exit(NULL); } - static std::string url = ""; - url = (std::string)(char *) data; + static std::string url = (std::string)(char *) data; std::string tmp_name = randomFile(getFileExt(url), "/tmp", 8); int64_t now = time_monotonic_ms();