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 authored and Maarten ter Huurne committed 2014-08-13 07:39:37 +02:00
1 parent 13f574bfb2
commit 82ac7ef44b
1 file changed
+2
+2
View File
@@ -93,6 +93,8 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, const char* linkfile)
file = linkfile;
#ifdef ENABLE_CPUFREQ
setClock(gmenu2x->getDefaultAppClock());
#else
setClock(0);
#endif
selectordir = "";
selectorfilter = "*";