fix for CkpvInitialized and fix for comparing CkpvAccess(a pointer) with 0 immeidatel...
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 10 Oct 2004 05:18:20 +0000 (05:18 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 10 Oct 2004 05:18:20 +0000 (05:18 +0000)
src/conv-com/convcomlibmanager.C

index ddf080093b406e4e8baca8735e49ac4b01740cfc..239a122a5d5d698fc6c6081068d2ffe6e32f4571 100644 (file)
@@ -70,11 +70,11 @@ extern void propagate_handler_frag(void *);
 //An initialization routine which does prelimnary initialization of the 
 //Converse commlib manager. 
 void initComlibManager(){ 
 //An initialization routine which does prelimnary initialization of the 
 //Converse commlib manager. 
 void initComlibManager(){ 
-    if(!CpvInitialized(conv_com_ptr))
+    if(!CkpvInitialized(conv_com_ptr))
         CkpvInitialize(ConvComlibManager *, conv_com_ptr);
 
         CkpvInitialize(ConvComlibManager *, conv_com_ptr);
 
-    if(CkpvAccess(conv_com_ptr) != 0)
-       return;   
+    //if(CkpvAccess(conv_com_ptr) != 0)
+    //   return;   
  
     ConvComlibManager *conv_com = new ConvComlibManager();
     CkpvAccess(conv_com_ptr) = conv_com;
  
     ConvComlibManager *conv_com = new ConvComlibManager();
     CkpvAccess(conv_com_ptr) = conv_com;