From cfb3c9eaa988839e4923196a7d26a6c35b0a789b Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 6 Oct 2006 14:00:35 -0400 Subject: BUG: potential segfault --- Source/cmDocumentation.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index b29dff6..283b020 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -1235,7 +1235,10 @@ void cmDocumentation::CreateManDocumentation() } this->AddSection("COPYRIGHT", cmDocumentationCopyright); - this->AddSection("SEE ALSO", &this->SeeAlsoSection[0]); + if(!this->SeeAlsoSection.empty()) + { + this->AddSection("SEE ALSO", &this->SeeAlsoSection[0]); + } this->AddSection("AUTHOR", cmDocumentationAuthor); } -- cgit v0.12