1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-05 08:49:43 +02:00

Set the clock to 0 before reading application link files

0 is the default clock value, which doesn't get written to link files
if it's not changed. The clock was previously uninitialised before
reading link files, so it would get written with a random value if
there was none before.
This commit is contained in:
Nebuleon Fumika 2014-08-13 05:11:44 +00:00 committed by Maarten ter Huurne
parent 13f574bfb2
commit 82ac7ef44b

View File

@ -93,6 +93,8 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, const char* linkfile)
file = linkfile; file = linkfile;
#ifdef ENABLE_CPUFREQ #ifdef ENABLE_CPUFREQ
setClock(gmenu2x->getDefaultAppClock()); setClock(gmenu2x->getDefaultAppClock());
#else
setClock(0);
#endif #endif
selectordir = ""; selectordir = "";
selectorfilter = "*"; selectorfilter = "*";