summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-10-06 18:00:35 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-10-06 18:00:35 (GMT)
commitcfb3c9eaa988839e4923196a7d26a6c35b0a789b (patch)
treeafb23495e2ac90357bfba046d3b4f6f37e87bf85 /Source/cmDocumentation.cxx
parent22442fd9e120e88676916fcba313217a8851d41a (diff)
downloadCMake-cfb3c9eaa988839e4923196a7d26a6c35b0a789b.zip
CMake-cfb3c9eaa988839e4923196a7d26a6c35b0a789b.tar.gz
CMake-cfb3c9eaa988839e4923196a7d26a6c35b0a789b.tar.bz2
BUG: potential segfault
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx5
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);
}