Browse Source

COMP: Fix assignment inside condition

Brad King 17 years ago
parent
commit
46e3956349
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/cmDocumentation.cxx

+ 2 - 2
Source/cmDocumentation.cxx

@@ -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("");