IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 30, 2004, 2:14:40 PM (22 years ago)
Author:
harman
Message:

Added psAbort for failed memory allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psScalar.c

    r1063 r1162  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-06-19 01:59:51 $
     10 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-07-01 00:14:40 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2121#include "psScalar.h"
    2222#include "psLogMsg.h"
     23#include "psAbort.h"
    2324
    2425/******************************************************************************/
     
    6162    // Create scalar
    6263    scalar = (psScalar *)psAlloc(sizeof(psScalar));
     64    if(scalar == NULL) {
     65        psAbort(__func__," : Line %d - Failed to allocate memory", __LINE__);
     66    }
     67
    6368    scalar->type.dimen = PS_DIMEN_SCALAR;
    6469    scalar->type.type = dataType;
Note: See TracChangeset for help on using the changeset viewer.