[cmake-commits] martink committed cmDocumentation.cxx 1.34 1.35

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Oct 6 14:00:38 EDT 2006


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv11646

Modified Files:
	cmDocumentation.cxx 
Log Message:
BUG: potential segfault


Index: cmDocumentation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDocumentation.cxx,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- cmDocumentation.cxx	5 Oct 2006 14:55:37 -0000	1.34
+++ cmDocumentation.cxx	6 Oct 2006 18:00:35 -0000	1.35
@@ -1235,7 +1235,10 @@
     }
 
   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);
 }
 



More information about the Cmake-commits mailing list