$(am__mv) requires automake 1.11 or later, so use plain 'mv -f' instead
[enigma2.git] / lib / dvb / epgcache.cpp
index 15248a6bf4da72783bd03bce213a0dfdd48275ae..8ac0c7188c1728203f7fe25a49cb70539af74ca0 100644 (file)
@@ -234,15 +234,14 @@ eEPGCache::eEPGCache()
 
 void eEPGCache::setCacheFile(const char *path)
 {
-       if (!strlen(m_filename))
+       bool inited = !!strlen(m_filename);
+       strncpy(m_filename, path, 1024);
+       if (!inited)
        {
-               strncpy(m_filename, path, 1024);
                eDebug("[EPGC] setCacheFile read/write epg data from/to '%s'", m_filename);
                if (eDVBLocalTimeHandler::getInstance()->ready())
                        timeUpdated();
        }
-       else
-               eDebug("[EPGC] setCacheFile already called... ignore '%s'", path);
 }
 
 void eEPGCache::timeUpdated()