IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 25, 2006, 4:19:23 PM (20 years ago)
Author:
drobbin
Message:

updated stringSplit NULL-handling (& tests)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psString.c

    r6962 r6989  
    1313 *  @author David Robbins, MHPCC
    1414 *
    15  *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2006-04-23 01:08:34 $
     15 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2006-04-26 02:19:23 $
    1717 *
    1818 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    177177                      const char *splitters)
    178178{
    179     PS_ASSERT_PTR_NON_NULL(splitters, NULL);
    180179    psList *values = psListAlloc(NULL); // The list of values to return
    181     if (string == NULL)
    182         return values;
     180    PS_ASSERT_PTR_NON_NULL(string, values);
     181    PS_ASSERT_PTR_NON_NULL(splitters, values);
     182    //    if (string == NULL)
     183    //        return values;
    183184
    184185    unsigned int length = strlen(string); // The length of the string
Note: See TracChangeset for help on using the changeset viewer.