Bug 469579 Coverity: uninitialized variable used in
authornelson%bolyard.com
Mon, 15 Mar 2010 06:57:55 +0000
changeset 9584 ab0791be9f72543b791ca24c763be32391c353ca
parent 9583 883793b13b2865c368807a890c3ca0ca8c207b61
child 9586 0f0ba019ad4ea33f8ee748e53b962553080c6b93
push idunknown
push userunknown
push dateunknown
bugs469579
Bug 469579 Coverity: uninitialized variable used in pkix_ComCRLSelParams_Duplicate and pkix_CRLSelector_Duplicate Patch contributed by Timeless <timeless@mozdev.org>, r=nelson
security/nss/lib/libpkix/pkix/crlsel/pkix_comcrlselparams.c
security/nss/lib/libpkix/pkix/crlsel/pkix_crlselector.c
--- a/security/nss/lib/libpkix/pkix/crlsel/pkix_comcrlselparams.c
+++ b/security/nss/lib/libpkix/pkix/crlsel/pkix_comcrlselparams.c
@@ -381,17 +381,17 @@ cleanup:
  */
 static PKIX_Error *
 pkix_ComCRLSelParams_Duplicate(
         PKIX_PL_Object *object,
         PKIX_PL_Object **pNewObject,
         void *plContext)
 {
         PKIX_ComCRLSelParams *old;
-        PKIX_ComCRLSelParams *new;
+        PKIX_ComCRLSelParams *new = NULL;
 
         PKIX_ENTER(COMCRLSELPARAMS, "pkix_ComCRLSelParams_Duplicate");
         PKIX_NULLCHECK_TWO(object, pNewObject);
 
         PKIX_CHECK(pkix_CheckType(object, PKIX_COMCRLSELPARAMS_TYPE, plContext),
                     PKIX_OBJECTNOTCOMCRLSELPARAMS);
 
         old = (PKIX_ComCRLSelParams *)object;
--- a/security/nss/lib/libpkix/pkix/crlsel/pkix_crlselector.c
+++ b/security/nss/lib/libpkix/pkix/crlsel/pkix_crlselector.c
@@ -326,17 +326,17 @@ cleanup:
  */
 static PKIX_Error *
 pkix_CRLSelector_Duplicate(
         PKIX_PL_Object *object,
         PKIX_PL_Object **pNewObject,
         void *plContext)
 {
         PKIX_CRLSelector *old;
-        PKIX_CRLSelector *new;
+        PKIX_CRLSelector *new = NULL;
 
         PKIX_ENTER(CRLSELECTOR, "pkix_CRLSelector_Duplicate");
         PKIX_NULLCHECK_TWO(object, pNewObject);
 
         PKIX_CHECK(pkix_CheckType
                     (object, PKIX_CRLSELECTOR_TYPE, plContext),
                     PKIX_OBJECTNOTCRLSELECTOR);