IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 27, 2007, 4:55:51 PM (19 years ago)
Author:
jhoblitt
Message:

fix PS_ASSERT_PTR() to be called on ptr not &ptr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psAssert.h

    r14676 r14682  
    2323#define PS_ASSERT_PTR(PTR, RVAL) \
    2424{ \
    25     if (PTR == NULL) return RVAL; \
    26     if (!psMemIsAlloced(PTR)) { \
     25    if (PTR && (!psMemIsAlloced(PTR))) { \
    2726        psError(PS_ERR_MEMORY_CORRUPTION, false, \
    2827            "Error: Pointer %p is corrupted or not on the PS memory system.", \
Note: See TracChangeset for help on using the changeset viewer.