diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-10-06 18:00:35 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-10-06 18:00:35 (GMT) |
commit | cfb3c9eaa988839e4923196a7d26a6c35b0a789b (patch) | |
tree | afb23495e2ac90357bfba046d3b4f6f37e87bf85 /Source/cmDocumentation.cxx | |
parent | 22442fd9e120e88676916fcba313217a8851d41a (diff) | |
download | CMake-cfb3c9eaa988839e4923196a7d26a6c35b0a789b.zip CMake-cfb3c9eaa988839e4923196a7d26a6c35b0a789b.tar.gz CMake-cfb3c9eaa988839e4923196a7d26a6c35b0a789b.tar.bz2 |
BUG: potential segfault
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r-- | Source/cmDocumentation.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |