COMP: Fix assignment inside condition

This commit is contained in:
Brad King 2008-10-11 15:35:30 -04:00
parent 4db6658d8f
commit 46e3956349
1 changed files with 2 additions and 2 deletions

View File

@ -343,8 +343,8 @@ void cmDocumentation::ClearSections()
//----------------------------------------------------------------------------
void cmDocumentation::AddDocumentIntroToPrint(const char* intro[2])
{
const char* docname;
if (intro && (docname = this->GetDocName(false)))
const char* docname = this->GetDocName(false);
if(intro && docname)
{
cmDocumentationSection* section;
std::string desc("");