IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 687


Ignore:
Timestamp:
May 14, 2004, 9:09:00 AM (22 years ago)
Author:
rhl
Message:

Make psMemGetRefCounter() return 0 if passed a NULL pointer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/src/Utils/memory.c

    r566 r687  
    389389int psMemGetRefCounter(void *vptr)      // return refCounter
    390390{
     391    if (vptr == NULL) {
     392        return 0;
     393    }
     394
    391395    psMemBlock *ptr = ((psMemBlock *)vptr) - 1;
    392396
Note: See TracChangeset for help on using the changeset viewer.