projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f10b51
)
Need to allow for unnamed groups.
author
Scott Cantor
<cantor.2@osu.edu>
Wed, 27 Apr 2005 17:31:13 +0000
(17:31 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Wed, 27 Apr 2005 17:31:13 +0000
(17:31 +0000)
xmlproviders/XMLMetadata.cpp
patch
|
blob
|
history
diff --git
a/xmlproviders/XMLMetadata.cpp
b/xmlproviders/XMLMetadata.cpp
index
ad2e3e3
..
3b2e371
100644
(file)
--- a/
xmlproviders/XMLMetadata.cpp
+++ b/
xmlproviders/XMLMetadata.cpp
@@
-1167,8
+1167,12
@@
XMLMetadataImpl::EntitiesDescriptor::EntitiesDescriptor(
}
}
- auto_ptr_char n(m_name);
- wrapper->m_groups.insert(pair<string,const EntitiesDescriptor*>(n.get(),this));
+ if (!saml::XML::isEmpty(m_name)) {
+ auto_ptr_char n(m_name);
+ wrapper->m_groups.insert(pair<string,const EntitiesDescriptor*>(n.get(),this));
+ }
+ else
+ m_name=NULL;
}
XMLMetadataImpl::EntitiesDescriptor::~EntitiesDescriptor()