summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-07-07 02:52:46 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-07-07 02:52:46 +0800
commit0b3ad02f99a00a086ddbd007ce83e976e1672e3c (patch)
treea5d93e128623b4cebca36040af7d23e6c7b2686c /include
parentfd270518a3989951288428af6a9386edd842d330 (diff)
downloadmobileperf-0b3ad02f99a00a086ddbd007ce83e976e1672e3c.tar.gz
mobileperf-0b3ad02f99a00a086ddbd007ce83e976e1672e3c.tar.bz2
Initialize index even if allocating the plugin class failed due to a buggy
base class
Diffstat (limited to 'include')
-rw-r--r--include/core/pluginclasshandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/pluginclasshandler.h b/include/core/pluginclasshandler.h
index 451e95a..84f77c3 100644
--- a/include/core/pluginclasshandler.h
+++ b/include/core/pluginclasshandler.h
@@ -32,6 +32,7 @@
#include <compiz.h>
#include <core/valueholder.h>
#include <core/pluginclasses.h>
+#include <cstdio>
extern unsigned int pluginClassHandlerIndex;
@@ -117,6 +118,7 @@ PluginClassHandler<Tp,Tb,ABI>::initializeIndex ()
}
else
{
+ mIndex.index = 0;
mIndex.failed = true;
mIndex.initiated = false;
mIndex.pcFailed = true;