Avoid passing pointer into log configurator.
authorScott Cantor <cantor.2@osu.edu>
Tue, 21 Oct 2008 03:02:07 +0000 (03:02 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 21 Oct 2008 03:02:07 +0000 (03:02 +0000)
xmltooling/XMLToolingConfig.cpp

index 59dd7ce..d36d746 100644 (file)
@@ -170,7 +170,7 @@ bool XMLToolingInternalConfig::log_config(const char* config)
         }
         else {
             string path(config);
-            PropertyConfigurator::configure(m_pathResolver ? m_pathResolver->resolve(path, PathResolver::XMLTOOLING_CFG_FILE).c_str() : config);
+            PropertyConfigurator::configure(m_pathResolver ? m_pathResolver->resolve(path, PathResolver::XMLTOOLING_CFG_FILE) : path);
         }
     }
     catch (const ConfigureFailure& e) {