From: Andreas Oberritter Date: Fri, 25 Mar 2011 15:35:07 +0000 (+0100) Subject: db: move variable X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/26f6e599f59a33b435340251d3eed2ff7786b1e3?hp=73c456d053fec157ed8a8b70a5efa7b622b58af4 db: move variable --- diff --git a/lib/dvb/db.cpp b/lib/dvb/db.cpp index 47b5427e..718e0888 100644 --- a/lib/dvb/db.cpp +++ b/lib/dvb/db.cpp @@ -615,7 +615,6 @@ 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) { eDebug("can't open %s: %m", p.c_str()); @@ -633,6 +632,7 @@ void eDVBDB::loadBouquet(const char *path) } return; } + int entries=0; char line[256]; bool read_descr=false; eServiceReference *e = NULL;