db: move variable
[enigma2.git] / lib / dvb / db.cpp
index ccaecd4f682798d62fc9315d0f923934aa863d3c..718e08888149204f600dcf403a27632f5dd396cc 100644 (file)
@@ -615,17 +615,9 @@ void eDVBDB::loadBouquet(const char *path)
        p+=path;
        eDebug("loading bouquet... %s", p.c_str());
        FILE *fp=fopen(p.c_str(), "rt");
-       int entries=0;
        if (!fp)
        {
-               struct stat s;
-               if ( !stat(path, &s) )
-               {
-                       rename(path, p.c_str() );
-                       loadBouquet(path);
-                       return;
-               }
-               eDebug("failed to open.");
+               eDebug("can't open %s: %m", p.c_str());
                if ( strstr(path, "bouquets.tv") )
                {
                        eDebug("recreate bouquets.tv");
@@ -640,6 +632,7 @@ void eDVBDB::loadBouquet(const char *path)
                }
                return;
        }
+       int entries=0;
        char line[256];
        bool read_descr=false;
        eServiceReference *e = NULL;