summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-10-11 19:35:30 (GMT)
committerBrad King <brad.king@kitware.com>2008-10-11 19:35:30 (GMT)
commit46e395634968600e29e6959c7318360f20d9a12d (patch)
treec3c40b8ffa905aa8671748cccdb779faddc74b49 /Source/cmDocumentation.cxx
parent4db6658d8fd6c4f0ff4308e48965fbba08caa73c (diff)
downloadCMake-46e395634968600e29e6959c7318360f20d9a12d.zip
CMake-46e395634968600e29e6959c7318360f20d9a12d.tar.gz
CMake-46e395634968600e29e6959c7318360f20d9a12d.tar.bz2
COMP: Fix assignment inside condition
Diffstat (limited to 'Source/cmDocumentation.cxx')
-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("");