[cpp-xmltooling COMMIT] /branches/REL_1/xmltooling/util/ParserPool.cpp
noreply at shibboleth.net
noreply at shibboleth.net
Wed Dec 21 19:33:51 GMT 2011
Author: scantor
Date: Wed Dec 21 19:33:51 2011
New Revision: 943
URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=943&view=rev
Log:
Fix use of temp object in tokenizer
Modified:
branches/REL_1/xmltooling/util/ParserPool.cpp
Modified: branches/REL_1/xmltooling/util/ParserPool.cpp
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/util/ParserPool.cpp?rev=943&r1=942&r2=943&view=diff
==============================================================================
--- branches/REL_1/xmltooling/util/ParserPool.cpp (original)
+++ branches/REL_1/xmltooling/util/ParserPool.cpp Wed Dec 21 19:33:51 2011
@@ -239,7 +239,8 @@
bool ParserPool::loadCatalogs(const char* pathnames)
{
- boost::tokenizer< char_separator<char> > catpaths(string(pathnames), char_separator<char>(PATH_SEPARATOR_STR));
+ string temp(pathnames);
+ boost::tokenizer< char_separator<char> > catpaths(temp, char_separator<char>(PATH_SEPARATOR_STR));
for_each(
catpaths.begin(), catpaths.end(),
// Call loadCatalog with an inner call to s->c_str() on each entry.
More information about the commits
mailing list