projects
/
shibboleth
/
cpp-xmltooling.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56a73c1
)
Fix use of temp object in tokenizer
author
Scott Cantor
<cantor.2@osu.edu>
Wed, 21 Dec 2011 19:33:51 +0000
(19:33 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Wed, 21 Dec 2011 19:33:51 +0000
(19:33 +0000)
xmltooling/util/ParserPool.cpp
patch
|
blob
|
history
diff --git
a/xmltooling/util/ParserPool.cpp
b/xmltooling/util/ParserPool.cpp
index
a195dd7
..
ca155ca
100644
(file)
--- a/
xmltooling/util/ParserPool.cpp
+++ b/
xmltooling/util/ParserPool.cpp
@@
-239,7
+239,8
@@
bool ParserPool::loadSchema(const XMLCh* nsURI, const XMLCh* pathname)
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.