~ubuntu-branches/ubuntu/karmic/nss/karmic-updates

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/dev/devutil.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-06-16 13:23:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616132347-311ysb8oep74b98y
Tags: 3.12.3-0ubuntu1
* new upstream release 3.12.3 RTM (NSS_3_12_3_RTM) (LP: #387751)
* adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
* needs nspr >= 4.7.4
  - update debian/control
* update 85_security_load.patch to latest debian version
  - update debian/patches/85_security_load.patch
* add new symbols for 3.12.3
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 * ***** END LICENSE BLOCK ***** */
36
36
 
37
37
#ifdef DEBUG
38
 
static const char CVS_ID[] = "@(#) $RCSfile: devutil.c,v $ $Revision: 1.32 $ $Date: 2008/09/30 04:09:02 $";
 
38
static const char CVS_ID[] = "@(#) $RCSfile: devutil.c,v $ $Revision: 1.33 $ $Date: 2008/11/19 20:44:35 $";
39
39
#endif /* DEBUG */
40
40
 
41
41
#ifndef DEVM_H
148
148
    if (count > 0) {
149
149
        rvSlots = nss_ZNEWARRAY(NULL, NSSSlot *, count + 1);
150
150
        if (rvSlots) {
151
 
            sp = slots;
152
 
            count = 0;
153
 
            for (sp = slots; *sp; sp++) {
 
151
            for (sp = slots, count = 0; *sp; sp++) {
154
152
                rvSlots[count++] = nssSlot_AddRef(*sp);
155
153
            }
156
154
        }
376
374
)
377
375
{
378
376
    PRUint32 j;
379
 
    NSSArena *arena;
 
377
    NSSArena *arena = NULL;
380
378
    NSSSlot *slot = NULL;
381
379
    nssSession *session = NULL;
382
380
    nssCryptokiObjectAndAttributes *rvCachedObject = NULL;