summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmDocumentation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 356d7f3..50a733f 100644
--- a/Source/cmDocumentation.cxx
+++ b/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("");