[cmake-commits] hoffman committed Registry.cxx 1.23 1.24

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Oct 3 11:55:36 EDT 2006


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

Modified Files:
	Registry.cxx 
Log Message:
ENH: make sure value is set before using it


Index: Registry.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/Registry.cxx,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- Registry.cxx	1 Aug 2006 18:45:32 -0000	1.23
+++ Registry.cxx	3 Oct 2006 15:55:34 -0000	1.24
@@ -212,13 +212,13 @@
   const char *key,
   const char **value)
 {
-  *value = 0;
   bool res = false;
   bool open = false;
   if ( ! value )
     {
     return res;
     }
+  *value = 0;
   if ( !m_Opened )
     {
     if ( !this->Open(this->GetTopLevel(), subkey,



More information about the Cmake-commits mailing list