certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/libCERTI ObjectClass.cc


From: CERTI CVS commits
Subject: [certi-cvs] certi/libCERTI ObjectClass.cc
Date: Fri, 09 Sep 2011 14:35:36 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      11/09/09 14:35:36

Modified files:
        libCERTI       : ObjectClass.cc 

Log message:
        Fix uninitialized var use

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/ObjectClass.cc?cvsroot=certi&r1=3.89&r2=3.90

Patches:
Index: ObjectClass.cc
===================================================================
RCS file: /sources/certi/certi/libCERTI/ObjectClass.cc,v
retrieving revision 3.89
retrieving revision 3.90
diff -u -b -r3.89 -r3.90
--- ObjectClass.cc      2 Sep 2011 21:42:22 -0000       3.89
+++ ObjectClass.cc      9 Sep 2011 14:35:35 -0000       3.90
@@ -19,7 +19,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 // USA
 //
-// $Id: ObjectClass.cc,v 3.89 2011/09/02 21:42:22 erk Exp $
+// $Id: ObjectClass.cc,v 3.90 2011/09/09 14:35:35 erk Exp $
 // ----------------------------------------------------------------------------
 
 #include  "Object.hh"
@@ -992,17 +992,17 @@
         ObjectClassAttribute * oca ;
         for (uint32_t i = 0 ; i < theAttributeList.size() ; i++) {
             oa = object->getAttribute(theAttributeList[i]);
-
             if (oa->hasCandidates()) {
+                oca = getAttribute(theAttributeList[i]);
                 // An attributeOwnershipAcquisition is on the way
                 // with this attribute.
 
-                // Le demandeur le plus recent devient proprietaire
+                // The more recent ownership candidate (requester) becomes 
owner
                 NewOwner = oa->getFirstCandidate();
 
                 oa->setOwner(NewOwner);
 
-                // On le supprime de la liste des demandeurs
+                // Suppress him from candidate list
                 oa->removeCandidate(NewOwner);
 
                 // Reinitialise divesting
@@ -1013,7 +1013,7 @@
 
                 
AnswerDivestiture.setAttributes(theAttributeList[i],compteur_divestiture);
                 compteur_divestiture++ ;
-
+                /* FIXME not sure that this should be done */
                 if (oca->isNamed("privilegeToDelete")) {
                     object->setOwner(NewOwner);
                 }
@@ -1676,4 +1676,4 @@
 
 } // namespace certi
 
-// $Id: ObjectClass.cc,v 3.89 2011/09/02 21:42:22 erk Exp $
+// $Id: ObjectClass.cc,v 3.90 2011/09/09 14:35:35 erk Exp $



reply via email to

[Prev in Thread] Current Thread [Next in Thread]