BUG: dont pass unverified char * to streams
This commit is contained in:
parent
d75a2f0861
commit
121fa374a9
|
@ -1401,8 +1401,10 @@ const char *cmMakefile::ExpandVariablesInString(std::string& source,
|
||||||
{
|
{
|
||||||
cmOStringStream error;
|
cmOStringStream error;
|
||||||
error << "Syntax error in cmake code at\n"
|
error << "Syntax error in cmake code at\n"
|
||||||
<< filename << ":" << line << ":\n"
|
<< (filename?filename:"(no filename given)")
|
||||||
<< parser.GetError() << ", when parsing string \"" << source.c_str() << "\"";
|
<< ":" << line << ":\n"
|
||||||
|
<< parser.GetError() << ", when parsing string \""
|
||||||
|
<< source.c_str() << "\"";
|
||||||
const char* versionValue
|
const char* versionValue
|
||||||
= this->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
|
= this->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
|
||||||
int major = 0;
|
int major = 0;
|
||||||
|
|
Loading…
Reference in New Issue