IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 27, 2004, 1:54:33 PM (22 years ago)
Author:
desonia
Message:

Changed psArrayRealloc to return a valid psArray even if the input psArray is NULL.

File:
1 edited

Legend:

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

    r1440 r1651  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-08-09 23:34:57 $
     11 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-08-27 23:54:33 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7070
    7171    if (in == NULL) {
    72         psError(__func__, "Null input vector\n");
    73         return NULL;
     72        return psArrayAlloc(nalloc);
    7473    } else if (in->nalloc != nalloc) {     // No need to realloc to same size
    7574        if (nalloc < in->n) {
Note: See TracChangeset for help on using the changeset viewer.