Fixed null -d bug.
authorScott Cantor <cantor.2@osu.edu>
Tue, 18 Jun 2002 20:02:35 +0000 (20:02 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 18 Jun 2002 20:02:35 +0000 (20:02 +0000)
shibtest/shibtest.cpp

index 25f9f21..0e7a783 100644 (file)
@@ -44,7 +44,7 @@ MyMapper::MyMapper()
 {
 }
 
-SAMLAttribute* scopedFactory(IDOM_Element* e)
+extern "C" SAMLAttribute* scopedFactory(IDOM_Element* e)
 {
     return new ScopedAttribute(e);
 }
@@ -58,7 +58,7 @@ int main(int argc,char* argv[])
     char* q_param=NULL;
     char* url_param=NULL;
     char* r_param=NULL;
-    char* path=NULL;
+    char* path="";
 
     for (int i=1; i<argc; i++)
     {
@@ -88,7 +88,6 @@ int main(int argc,char* argv[])
     if (!ShibConfig::init(&conf2))
         cerr << "unable to initialize Shibboleth runtime" << endl;
 
-
     saml::XML::registerSchema(EDUPERSON_NS,EDUPERSON_SCHEMA_ID);
 
     auto_ptr<XMLCh> ATTRNS(XMLString::transcode("urn:mace:shibboleth:1.0:attributeNamespace:uri"));