From 46e395634968600e29e6959c7318360f20d9a12d Mon Sep 17 00:00:00 2001 From: Brad King Date: Sat, 11 Oct 2008 15:35:30 -0400 Subject: COMP: Fix assignment inside condition --- Source/cmDocumentation.cxx | 4 ++-- 1 file 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(""); -- cgit v0.12