IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2355


Ignore:
Timestamp:
Nov 12, 2004, 12:29:41 PM (22 years ago)
Author:
evanalst
Message:

Generate error message when psArrayRealloc parameter is NULL.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

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

    r2204 r2355  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 00:57:31 $
     11 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-11-12 22:29:41 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6262{
    6363    if (in == NULL) {
    64         return psArrayAlloc(nalloc);
     64        psError(PS_ERR_BAD_PARAMETER_NULL,true,PS_ERRORTEXT_psArray_REALLOC_NULL);
     65        return NULL;
    6566    } else if (in->nalloc != nalloc) {     // No need to realloc to same size
    6667        if (nalloc < in->n) {
  • trunk/psLib/src/types/psArray.c

    r2204 r2355  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 00:57:31 $
     11 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-11-12 22:29:41 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6262{
    6363    if (in == NULL) {
    64         return psArrayAlloc(nalloc);
     64        psError(PS_ERR_BAD_PARAMETER_NULL,true,PS_ERRORTEXT_psArray_REALLOC_NULL);
     65        return NULL;
    6566    } else if (in->nalloc != nalloc) {     // No need to realloc to same size
    6667        if (nalloc < in->n) {
Note: See TracChangeset for help on using the changeset viewer.