[Cmake-commits] CMake branch, master, updated. 2c6f8de2cc79ec2aeade156c83611231f59cc6fd
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Mar 26 16:58:40 EDT 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, master has been updated
via 2c6f8de2cc79ec2aeade156c83611231f59cc6fd (commit)
from 93458332720dc0c237360d8350c4d16b5d8e68c9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2c6f8de2cc79ec2aeade156c83611231f59cc6fd
commit 2c6f8de2cc79ec2aeade156c83611231f59cc6fd
Author: Bill Hoffman <bill.hoffman at kitware.com>
Date: Fri Mar 26 16:57:01 2010 -0400
Fix for bug #0010466, fix crash in --help-module.
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index fc2fb14..1dfc784 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -1177,11 +1177,18 @@ bool cmDocumentation::PrintDocumentationSingleModule(std::ostream& os)
this->CurrentArgument.c_str(),
*this->AllSections["Modules"]))
{
- this->PrintDocumentationCommand
- (os, this->AllSections["Modules"]->GetEntries()[0]);
- os << "\n Defined in: ";
- os << moduleName << "\n";
- return true;
+ if(this->AllSections["Modules"]->GetEntries().size())
+ {
+ this->PrintDocumentationCommand
+ (os, this->AllSections["Modules"]->GetEntries()[0]);
+ os << "\n Defined in: ";
+ os << moduleName << "\n";
+ return true;
+ }
+ else
+ {
+ return false;
+ }
}
}
-----------------------------------------------------------------------
Summary of changes:
Source/cmDocumentation.cxx | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list