From 01bd7d51d0a2830f2afb1e57ce9e5f993fd45649 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 21 Oct 2021 13:42:37 +0200 Subject: [PATCH] xmlutil:insertEventsfromXMLTV make url not static --- 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 2c1fe99e4..884ff0c5b 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();