summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-19 08:52:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-19 11:56:57 +0100
commit9591852ccaf91fa033c44b4d672ec152d7e470fa (patch)
treeecdd1266c6b410790aefd12c24cef20a715f2f3d /configmgr
parentae635c1eda512ad4e2d2f9181d6118654ff77e70 (diff)
don't set singletonCreated before possible throws
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/components.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index ae0da5f759d6..f76f020089ae 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -154,9 +154,9 @@ void Components::initSingleton(
{
OSL_ASSERT(context.is());
if (!singletonCreated) {
- singletonCreated = true;
static Components theSingleton(context);
singleton = &theSingleton;
+ singletonCreated = true;
}
}