It helps to actually RETURN the object....
authorDerek Atkins <derek@ihtfp.com>
Tue, 8 Oct 2002 00:25:25 +0000 (00:25 +0000)
committerDerek Atkins <derek@ihtfp.com>
Tue, 8 Oct 2002 00:25:25 +0000 (00:25 +0000)
shib-target/shib-config.cpp

index c7860af..a629a49 100644 (file)
@@ -36,9 +36,11 @@ private:
   int refcount;
 };
 
-static STConfig * g_Config = NULL;
-CCache* shibtarget::g_shibTargetCCache = NULL;
+namespace {
+  STConfig * g_Config = NULL;
+}
 
+CCache* shibtarget::g_shibTargetCCache = NULL;
 
 /****************************************************************************/
 // External Interface
@@ -55,6 +57,7 @@ ShibTargetConfig& ShibTargetConfig::init(const char* app_name, const char* inifi
   }
 
   g_Config = new STConfig(app_name, inifile);
+  return *g_Config;
 }